Think before you speak, read before you think.

ubuntu从12.04升级到14.04and安装zsh

by

in

一直用 ubuntu 12.04 ,不敢大版本升级,问题很多还不如重装。今天尝试了一下升级到 14.04 ,效果很好。

先安装zsh和git,同时移除之前可能的oh-my-zsh的安装。


sudo apt-get install zsh git
if [ -d ~/.oh-my-zsh ]; then
rm -r ~/.oh-my-zsh
fi

手动安装zsh是用于Ubuntu的 sh 比较诡异,不识别 source 这个指令。装好zsh后仿OS X

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

然后把shell切换成zsh,并重启计算机。

chsh -s `which zsh`
sudo shutdown -r 0

参考:

http://logicmd.net/2012/11/installing-zsh-on-ubuntu/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *