Installation and use of mac-zsh--ultimate shell

Source: Internet
Author: User

Foreword: Zsh can be configured strong, user can customize the configuration, personalization is strong. Zsh Tab Completion is more powerful, this feature allows us to save a lot of time. Zsh also has the code highlighting function, makes the code to look better, appears the force lattice higher. Zsh also has a lot of powerful features, and here is not a detail.

Then I'll tell you a joke:

Zsh is all called the Z Shell, because Z is the last letter, so we call it the ultimate shell.

This is one of the comments I saw on the understanding that he was very reasonable and I was speechless.

A lot of people are using bash, which is why? Because zsh in the early days, its configuration is quite complex, the average person can only see the configuration will turn around and leave. However, now there is a cattle abroad, the configuration of the zsh is quite simple, we only need a few steps to complete, and it put the project on GitHub, that is on-my-zsh.

Basic Installation

UNIX-based operating system (MAC, Linux) requires pre-installation of zsh.

How to detect is to install ZSH:

Zsh--version;

Via Curl
Curl-l https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

Via wget
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh-o-| sh

ON-MY-ZSH Installation

Here only one installation method, other methods please go to on-my-zsh to view.

1. Cloning a warehouse

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

2. If you already have a ~/.ZSHRC file, back up the existing ~/.ZSHRC file

CP ~/.ZSHRC ~/.zshrc.orig

3. Create a new zsh configuration file

CP ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.ZSHRC

4. Change the default shell

Chsh-s/bin/zsh

5. Restart your terminal (Terminal)

There are some embarrassing situations where you can see that, for example, you can't change the default shell, causing some people to think it's a setup failure and no clue. In fact, in this case, only need to enter ZSH in the terminal, you can complete the switchover, but the default is not zsh:

$ zsh?  

Yes, because it is not the default, this is the format after manual switching.

In addition, the associated alias can be copied to the ~/.ZSHRC file, and finally update the file with Source:

? SOURCE ~/.ZSHRC

Resources:

Change bash on Mac to zsh

Blog Garveycalvin

Blog Source: http://www.cnblogs.com/GarveyCalvin/

This article copyright belongs to the author and the blog Garden altogether, welcome reprint, but must retain this paragraph statement, and gives the original link, thanks cooperation!

Installation and use of mac-zsh--ultimate shell

Related Article

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.