Ahmad Awais

SHARE


Command-Line ZSH Syntax Highlighting Is Dope!

Ahmad AwaisAhmad Awais

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.

 zsh-syntax-highlight

Syntax highlight in ZSH is awesome. It highlights what you’re tying in real time.

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! ✌️

🎩

WPTakeaway: Premium WordPress Newsletter!

Takeaway my professional opinion about Full Stack WordPress Development, building a business, growing a family, and everything web! Delivered to your inbox twice a month. 👻 I hate spam! Pinky Promise!

🔥 Ridiculously hard-working Full Stack Web DeveloperRegular WordPress Core Contributor 📣 TEDx Speaker ✌️ Spends 50% of his time building FOSS (Free & Open Source Software) used by over 10,000 Developers 🎖 WordPress Advocate & 🙌 Community Evangelist 👻 DevOps fanboy 😂 Cracks silly jokes 💜 Loves his wife (Maedah) 🍕 Learn more about Ahmad ↣

Say 👋 on Twitter @MrAhmadAwais | Subscribe to the WordPress Takeaway!