Continue with the previous article about my terminal environment. This introduction zsh and Z, in fact, is not limited to OS X and is available in all *nix systems.
Zsh
Zsh as a substitute for bash, naturally a lot of people ask: why ZSH? The zsh Workshop has a long list of functions to answer this question. Here is the reason why I choose zsh, of course, also introduces zsh powerful function.
Compatible with bash. This makes switching to zsh without any cost.
OS x Default bash version is really too old ...
Spell correction. You always accidentally make the wrong order. At this point, zsh will make automatic spelling corrections, as shown in figure:
More powerful complement.
Pressing two times tab lists all of the completion lists and starts the selection directly. As shown in figure:
and can use the direction key to choose, but to me this very few uses the direction key the person to be able to punch the tab only, is not, ZSH supports uses the <ctrl-n/p/f/b> to choose, perfect!
command option completion. How many people still can't remember the command options for tar? The gun to copy 20 times ... You only need to type tar in zsh-<tab> will list all the options and help instructions. After using the zsh, man uses a lot less ...
Command parameter completion. Zsh is also powerful for the parameters of the command. Type kill <tab> Lists all the process names and the corresponding process numbers. As shown in figure: