Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

80 wiersze
2.9 KiB

13 lat temu
6 lat temu
13 lat temu
13 lat temu
8 lat temu
13 lat temu
  1. zsh-syntax-highlighting [![Build Status][build-status-image]][build-status-travis]
  2. =======================
  3. **[Fish shell][fish]-like syntax highlighting for [Zsh][zsh].**
  4. *Requirements: zsh 4.3.11+.*
  5. [fish]: http://www.fishshell.com/
  6. [zsh]: http://www.zsh.org/
  7. This package provides syntax highlighting for the shell zsh. It enables
  8. highlighting 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. Some examples:
  12. Before: [![Screenshot #1.1](images/before1-smaller.png)](images/before1.png)
  13. <br/>
  14. After:&nbsp; [![Screenshot #1.2](images/after1-smaller.png)](images/after1.png)
  15. Before: [![Screenshot #2.1](images/before2-smaller.png)](images/before2.png)
  16. <br/>
  17. After:&nbsp; [![Screenshot #2.2](images/after2-smaller.png)](images/after2.png)
  18. Before: [![Screenshot #3.1](images/before3-smaller.png)](images/before3.png)
  19. <br/>
  20. After:&nbsp; [![Screenshot #3.2](images/after3-smaller.png)](images/after3.png)
  21. How to install
  22. --------------
  23. See [INSTALL.md](INSTALL.md).
  24. FAQ
  25. ---
  26. ### Why must `zsh-syntax-highlighting.zsh` be sourced at the end of the `.zshrc` file?
  27. `zsh-syntax-highlighting.zsh` wraps ZLE widgets. It must be sourced after all
  28. custom widgets have been created (i.e., after all `zle -N` calls and after
  29. running `compinit`). Widgets created later will work, but will not update the
  30. syntax highlighting.
  31. ### Does syntax highlighting work during incremental history search?
  32. Highlighting the command line during an incremental history search (by default bound to
  33. to <kbd>Ctrl+R</kbd> in zsh's emacs keymap) requires zsh 5.4 or newer.
  34. Under zsh versions older than 5.4, the zsh-default [underlining][zshzle-Character-Highlighting]
  35. of the matched portion of the buffer remains available, but zsh-syntax-highlighting's
  36. additional highlighting is unavailable. (Those versions of zsh do not provide
  37. enough information to allow computing the highlighting correctly.)
  38. See issues [#288][i288] and [#415][i415] for details.
  39. [zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting
  40. [i288]: https://github.com/zsh-users/zsh-syntax-highlighting/pull/288
  41. [i415]: https://github.com/zsh-users/zsh-syntax-highlighting/pull/415
  42. ### How are new releases announced?
  43. There is currently no "push" announcements channel. However, the following
  44. alternatives exist:
  45. - GitHub's RSS feed of releases: https://github.com/zsh-users/zsh-syntax-highlighting/releases.atom
  46. - An anitya entry: https://release-monitoring.org/project/7552/
  47. How to tweak
  48. ------------
  49. Syntax highlighting is done by pluggable highlighter scripts. See the
  50. [documentation on highlighters](docs/highlighters.md) for details and
  51. configuration settings.
  52. [build-status-image]: https://travis-ci.org/zsh-users/zsh-syntax-highlighting.svg?branch=master
  53. [build-status-travis]: https://travis-ci.org/zsh-users/zsh-syntax-highlighting