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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. Teaching thousands of developers Node.js CLI Automation and VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.
Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!
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 from Oh My ZSH and it’s noticeably faster.
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.Mentions