Mac software I'm using (2) terminal environment zsh and Z (*nix are all applicable)

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.