Ahmad Awais

NAVIGATE


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

I help businesses understand developers πŸ“Ÿ Currently recording Node.js CLI Automation Course πŸ‘¨β€πŸ« Edutainer at VSCode.pro 🎩 An award-winning open-source engineer and developer advocate 🦊 Google Developers Expert for web 🌳 Node.js foundation Community Committee member ✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer πŸ“£ TEDx Speaker πŸ™Œ Leading developers and publishing technical content for over a decade πŸ˜‚ Self-confessed tech comedian cracking silly jokes in the JavaScript web and cloud communities πŸ’œ Loves his wife (Maedah) ❯ Learn more about Awais ↣

Say πŸ‘‹ on Twitter @MrAhmadAwais | Subscribe to the Developers Takeaway!

πŸ“¨

Developers Takeaway

Takeaway my professional opinion on open-source, developer relations, growing your business with family, and everything in between! Delivered to your inbox a couple of times every year. I'm even funny at times. I hate spam β€” pinky-promise!

πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’» 115,834 Developers Already Subscribed