Zsh. See also: https://www.zhihu.com/question/21418449
Install Zsh
Yum Install-y zsh
After loading, verify that the last line has/bin/zsh
[Root@hadoop3 ~]# cat/etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/zsh
Switch Shell to Zsh
Chsh-s/bin/zsh
then echo $SHELL See or bash, a lot of blogs say to restart, in fact, as long as the end of the terminal to open the switch over.
Install Oh-my-zsh
wget Https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh-O-| Sh
Sometimes you can not connect to the GitHub 443 port, download directly
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
CP ~/.oh-my-zsh/templates/ Zshrc.zsh-template ~/.ZSHRC
Go back in and log in and the terminal will be ready.
View Topics
ls. oh-my-zsh/themes
Change the theme inside the ZSHRC into Ys, and the prompt becomes this:
# root @ hadoop3 in ~ [10:59:27]
Install the auto prompt plugin
wget http://mimosa-pudica.net/src/incr-0.2.zsh
mkdir ~/.oh-my-zsh/plugins/incr
mv Incr-0.2.zsh ~/. OH-MY-ZSH/PLUGINS/INCR
Echo ' source ~/.oh-my-zsh/plugins/incr/incr*.zsh ' >> ~/.zshrc
source ~/.ZSHRC
OK, let's have a CD and see if it's cool.
Install AutoJump
I yum source without autojump, download installation directly
git clone git://github.com/joelthelion/autojump.git
autojump/install.py
Installation completed under ~/. AutoJump directory, add a line to the. ZSHRC
[[s ~/.autojump/etc/profile.d/autojump.sh]] &&. ~/.autojump/etc/profile.d/autojump.sh
It's ready, you can use J.
I knocked over the CD ~/GO/SRC/LEARNINGGO/CH2. If you change the current directory, then Knock J 2 back, cool.