I’m a command-line power-user. I do more things with command line than I probably should. So, I have built a lot of small workflows to help me with daily stuff.
For example, Command-Line ZSH Syntax Highlighting is a total win. It helps me visualize if I am about to run a dangerous command rm -rf *
(anyone?) β and also if a program exists in the $PATH or not.

Syntax highlight in ZSH is awesome. It highlights what youβre tying in real time.
- If a program doesnβt exist, the text isΒ
red
.
- If a program does exist, the text isΒ
green
.
- It highlights matching brackets, text inside quotes, loads of stuff.
To use it, cloneΒ zsh-syntax-highlighting
Β from Github and add the following commands to yourΒ .zshrc
. Theyβll enable the common highlighters, and add a warning highlight when you try and useΒ rm -rf
.
Happy hacking. Peace! βοΈ
Hi Ahmad,
zsh
is cool. You might also like skwp.github.io/dotfiles/ (YADR). It uses Prezto github.com/sorin-ionescu/prezto and the ZSH Syntax Highlighting is incorporated by Prezto.YADR has a lot of neat git aliases and tweaks for Homebrew. Also, a very useful
vimrc
file if you use vim. Just the aliases are worth a look.I switched to
YADR
some time ago fromOh My ZSH
and it’s noticeably faster.