參考連接: http://michaelheap.com/installing-zsh-5-0-on-centos-5-7/linux
centos安裝zsh,配置oh-my-zsh,老是有
shell
~/.oh-my-zsh/lib/termsupport.zsh:36: add-zsh-hook: function definition file not found
的錯誤,google以後,上面連接給出瞭解決辦法。centos
查看zsh的版本號。。google
$ zsh --version zsh 4.2.6 (x86_64-redhat-linux-gnu)
聽說是由於版本太舊了,好吧,下載新版本
.net
$ 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
安裝:code
$ ./configure && make && sudo make install
還必須加上下面兩步:get
$ echo "/usr/local/bin/zsh" | sudo tee -a /etc/shells $ chsh -s /usr/local/bin/zsh
而後從新登陸就能夠了。
it