{"repo":"zsh-users/zsh-syntax-highlighting","free":true,"listed":false,"github":"https://github.com/zsh-users/zsh-syntax-highlighting","clone":"git clone https://github.com/zsh-users/zsh-syntax-highlighting.git","description":"Fish shell like syntax highlighting for Zsh.","language":"Shell","stars":22928,"topics":["shell","syntax-highlighting","zsh","screenshot","zsh-syntax-highlighting"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"zsh-syntax-highlighting [![Build Status][build-status-image]][build-status] ======================= [Fish shell][fish]-like syntax highlighting for [Zsh][zsh]. Requirements: zsh 4.3.11+. [fish]: https://fishshell.com/ [zsh]: https://www.zsh.org/ This package provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors. Some examples: Before: After:&nbsp; Before: After:&nbsp; Before: After:&nbsp; Before: After:&nbsp; How to install -------------- See INSTALL.md. FAQ --- Why must zsh-syntax-highlighting.zsh be sourced at the end of the .zshrc file? zsh-syntax-highlighting works by hooking into the Zsh Line Editor (ZLE) and computing syntax highlighting for the command-line buffer as it stands at the time z-sy-h's hook is invoked. In zsh 5.2 and older, zsh-syntax-highlighting.zsh hooks into ZLE by wrapping ZLE widgets. It must be sourced after all custom widgets have been created (i.e., after all zle -N calls and after running compinit ) in order to be able to wrap all of them. Widgets created after z-sy-h is sourced will work, but will not update the syntax highlighting. In zsh newer than 5.8 (not including 5.8 itself), zsh-syntax-highlighting uses the add-zle-hook-widget facility to install a zle-line-pre-redraw hook. Hooks are run in order of registration, therefore, z-sy-h must be sourced (and ","default_branch":null,"files":null,"tree":[],"storefront":"/r/zsh-users","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zsh-users/zsh-syntax-highlighting/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}