Why you should use Zsh?
First of all, I’m a long-time zsh user. So probably with help of .bashrc you can do these examples in bash. But I’ll write about some zsh usage tips which helps me do things faster here. Also probably you will need a .zshrc in zsh, otherwise it can make you crazy. It’s dangerous to go alone, take my zshrc for example: here. Btw if you use this you’ll get a prompt like:
Here we go,
Fast navigation:
user@computer:$ pwd
/var/lib/dbus
user@computer:$ cd lib run
/var/run/dbus
user@computer:$ pwd
/var/run/dbus
/var/lib/dbus
user@computer:$ cd lib run
/var/run/dbus
user@computer:$ pwd
/var/run/dbus
Substitute previous command (use gs instead of s for "replace all"):
user@computer:$ cp /this/is/very/long/lib/path/file.txt /this/is/the/destination/
user@computer:$ !!:s/lib/proc/
cp /this/is/very/long/proc/path/file.txt /this/is/the/destination/
user@computer:$ !!:s/lib/proc/
cp /this/is/very/long/proc/path/file.txt /this/is/the/destination/
Completion you say?
user@computer:$ cd /u/li/zs<TAB> completes /usr/lib/zsh
Somehow bookmarks:
user@computer:$ hash -d zsh="/usr/lib/zsh"
user@computer:$ cd ~zsh
user@computer:$ pwd
/usr/lib/zsh
user@computer:$ cd ~zsh
user@computer:$ pwd
/usr/lib/zsh
Oh no, I can’t tell more. zcalc, zmv, zftp aaarrrggh.. I love them but there are too much.
Here is a detailed text about zsh capabilities. You know what?








