No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

85 líneas
3.1 KiB

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