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

📨

TheDevTakeaway: Developers' Newsletter!

Takeaway my professional opinion about Open Source, JavaScript/Cloud, Full Stack Development, building a business, growing a family, and everything in between! Delivered to your inbox once a month. 🤣 I'm even funny some times. 👻 I hate spam! Pinky Promise!

🎩 Full-time #OpenSourcerer 🥑 JavaScript Developer Advocate 🔥 Ridiculously hard-working Full Stack Web DeveloperRegular WordPress Core Developer 📣 TEDx Speaker ✌️ Spends 50-80% of his time building professional FOSS (Free & Open Source Software) used by over 103,700 Developers 🙌 Cloud Community Evangelist 🎯 JavaScript & DevOps fanboy 😂 Cracks silly jokes 💜 Loves his wife (Maedah) 🍕 Learn more about Ahmad ↣

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