Installation and Use of MAC-Zsh-Ultimate Shell and mac-zsh ultimate shell
Zsh is highly configurable, user-defined, and personalized. Zsh tab completion is more powerful, which can save a lot of time. Zsh also supports code highlighting, which makes the Code look better and more powerful. Zsh also has many powerful functions. I will not elaborate on them here.
Then I will tell you a joke:
Zsh is called the Z Shell, Because Z is the last letter, so we call it the ultimate Shell.
This is a comment I saw in zhihu. He makes a lot of sense and I have no words to say.
Many people are using bash. Why? In the early stages of Zsh, its configuration is quite complex. Generally, as long as you see the configuration, Zsh will turn around and leave. However, there is now a good overseas guy who makes Zsh configuration quite simple. We only need a few steps to complete it, and it also places the project on GitHub, that is, on-my-zsh.
Basic installation
Based on Unix (Mac, Linux), zsh must be installed in advance.
How to check whether zsh is installed:
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 is only one installation method. For other methods, go to on-my-zsh.
1. clone a repository
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2. If you already exist ~ /. 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)
Some others may find that, for example, the default Shell cannot be changed, and some people think it is an installation failure and there is no clue. In fact, in this case, you only need to enter zsh on the terminal to complete the switch, but the default is not zsh:
$ zsh➜ ~ git:(master) ✗
Yes, because it is not the default value, this is the format after manual switching.
In addition, related alias can be copied ~ /. In the zshrc file, use source to update the file:
✗ source ~/.zshrc
References:
Change bash on Mac to zsh
Blog Author: GarveyCalvin
Blog Source: http://www.cnblogs.com/GarveyCalvin/
The copyright of this article is shared by the author and the blog. You are welcome to repost it, but you must keep this statement and provide the original article link. Thank you for your cooperation!