centos 6.3安裝&升級zsh
yum安裝zsh
1
yum install zsh
2
zsh --version
3
zsh 4.3.10 (x86_64-redhat-linux-gnu)
下載解壓zsh 5.0.2
1
wget http://sourceforge.net/projects/zsh/files/zsh/5.0.2/zsh-5.0.2.tar.bz2/download && tar xvjf zsh-5.0.2.tar.bz2 && cd zsh-5.0.2
編譯安裝zsh 5.0.2
1
./configure && make && sudo make install
查看安裝情況
1
/usr/local/bin/zsh --version
2
zsh 5.0.2 (x86_64-unknown-linux-gnu)
3
zsh --version
4
zsh 4.3.10 (x86_64-redhat-linux-gnu)
5
cat /etc/shells
6
/bin/sh
7
/bin/bash
8
/sbin/nologin
9
/bin/zsh
將zsh5.0.2改為默認的shell
1
echo "/usr/local/bin/zsh" | tee -a /etc/shells
2
chsh -s /usr/local/bin/zsh
3
Changing shell for root.
4
Shell changed.
一個強大的命令自動補全shell。