Why zsh is Cooler Than Your Shell

less than 1 minute read

I’ve been using zsh as my primary shell for a couple of years now. I’m at the point where if I’m on a system that I own, that I’m not using zsh on, I’m changing it immediately. As with everything there is always more to learn, and these zsh path changing shortcuts are excellent:

Path substitution:

$ cd /usr/local/bin
$ pwd
/usr/local/bin
$ cd bin share
$ pwd
/usr/local/share

Path shortcuts:

$ cd /u/l/b
$ pwd
/usr/local/bin

And the programable file renaming:

$ ls
one.txt two.txt three.txt
$ zmv '(*).txt' '$1.html'
$ ls
one.html two.html three.html

Tags: , , ,

Categories:

Updated: