You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.2 KiB

13 years ago
13 years ago
13 years ago
8 years ago
13 years ago
  1. zsh-syntax-highlighting
  2. =======================
  3. **[Fish shell][fish]-like like syntax highlighting for [Zsh][zsh].**
  4. *Requirements: zsh 4.3.17+.*
  5. [fish]: http://www.fishshell.com/
  6. [zsh]: http://www.zsh.org/
  7. This package provides syntax highlighing for the shell zsh. It enables
  8. highlighing of commands whilst they are typed at a zsh prompt into an
  9. interactive terminal. This helps in reviewing commands before running
  10. them, particularly in catching syntax errors.
  11. [![Screenshot](images/preview-smaller.png)](images/preview.png)
  12. How to install
  13. --------------
  14. See [INSTALL.md](INSTALL.md).
  15. FAQ
  16. ---
  17. ### Why must `zsh-syntax-highlighting.zsh` be sourced at the end of the `.zshrc` file?
  18. `zsh-syntax-highlighting.zsh` wraps ZLE widgets. It must be sourced after all
  19. custom widgets have been created (i.e., after all `zle -N` calls and after
  20. running `compinit`). Widgets created later will work, but will not update the
  21. syntax highlighting.
  22. ### Does syntax highlighting work during incremental history search?
  23. Highlighting the command line during an incremental history search
  24. (with the `history-incremental-search-backward` widget, which is
  25. bound by default to <kbd>Ctrl+R</kbd> in zsh's emacs keymap) requires zsh 5.3
  26. or newer.
  27. Under zsh 5.2 and older, the zsh-default [underlining][zshzle-Character-Highlighting]
  28. of the matched portion of the buffer remains available, but zsh-syntax-highlighting's
  29. additional highlighting is unavailable. (Those versions of zsh do not provide
  30. enough information to allow computing the highlighting correctly.)
  31. See [issue #288][i288] for details.
  32. [zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting
  33. [i288]: https://github.com/zsh-users/zsh-syntax-highlighting/pull/288
  34. ### How are new releases announced?
  35. There is currently no "push" announcements channel. However, the following
  36. alternatives exist:
  37. - GitHub's RSS feed of releases: https://github.com/zsh-users/zsh-syntax-highlighting/releases.atom
  38. - An anitya entry: https://release-monitoring.org/project/7552/
  39. How to tweak
  40. ------------
  41. Syntax highlighting is done by pluggable highlighter scripts. See the
  42. [documentation on highlighters](docs/highlighters.md) for details and
  43. configuration settings.