centos 6.3 安装&升级 zsh

yum安装zsh
yum install zsh
zsh --version
zsh 4.3.10 (x86_64-redhat-linux-gnu)
下载解压zsh 5.0.2
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
./configure && make && sudo make install
查看安装情况
/usr/local/bin/zsh --version
zsh 5.0.2 (x86_64-unknown-linux-gnu)
zsh --version
zsh 4.3.10 (x86_64-redhat-linux-gnu)
cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/zsh
将zsh5.0.2改为默认的shell
echo "/usr/local/bin/zsh" | tee -a /etc/shells
chsh -s /usr/local/bin/zsh
Changing shell for root.
Shell changed.
一个强大的命令自动补全shell。

你可能感兴趣的:(centos,shell,zsh)