10 Zsh command tips:
1: Use ** as the wildcard for the sub-directory:
$ Ls **/*. pyc
Foo. pyc bar. pyc lib/wibble. pyc
$ Rm **/*. pyc
$ Ls **/*. pyc
2: Use the matching mode in file filtering:
$ Ls *. (py | sh)
3: Use modifiers in file filtering, for example: (@) only match the symbolic link:
$ Ls-l *(@)
4: Use the TAB to automatically complete the task. For example, when using man:
$ Man zsh [TAB]
5: You can also use tabs to automatically complete command options:
$ Python-[TAB]
6: or automatically completed during kill:
$ Kill Dock [TAB]
7: When the tab is automatically supplemented, you can use the cursor key (top, bottom, left, and so on ):
$ Man zsh [TAB] [DOWN] [RIGHT] [LEFT] [UP]
8: automatically modify the incorrect input:
$ Pythn-V
Zsh: correct 'pythn' to 'python' [nyae]? Y
Python 2.7.1
9: Use r to repeat the previous command. The replacement method can be used!
$ Touch foo.htm bar.htm
$ Mv foo.htm foo.html
$ R foo = bar
Mv bar.htm bar.html
10: highly customizable prompt. You can use RPROMPT to set the prompt on the right!
$ RPROMPT = "% t"
Zsh installation and Configuration Guide
Nine reasons for using Zsh
Zsh usage tips
Install the ultimate Shell Zsh in Linux