
zsh-syntax-highlighting is a GitHub repo that you can setup along with Zsh to get System Highlighting for commands just like Fish-Shell,
3 Easy steps to set up Zsh Syntax Highlighting
- Clone git repo: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
% git clone https://github.com/zsh-users/zsh-syntax-highlighting.git Cloning into 'zsh-syntax-highlighting'... remote: Enumerating objects: 7016, done. remote: Counting objects: 100% (103/103), done. remote: Compressing objects: 100% (51/51), done. remote: Total 7016 (delta 50), reused 80 (delta 46), pack-reused 6913 Receiving objects: 100% (7016/7016), 1.52 MiB | 2.22 MiB/s, done. Resolving deltas: 100% (4725/4725), done. - Now execute command: echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
- To enable syntax highlighting,
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Reference and more details: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!