Mac Terminal:zsh+oh-my-zsh

将bash切换为zsh

1
chsh -s /bin/zsh

其实还可以用which来定位(特别是ubuntu的童鞋)

chsh -s which zsh``

直接用zsh会很蛋疼,因为zsh功能很强大但是太复杂,所以需要oh-my-zsh来将它简单化。如果要切换回去:

1
chsh -s /bin/bash

下载oh-my-zsh

  1. 直接用git从github上面下载包:
1
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 
  1. 备份已有的zshrc(一般不需要)
1
cp ~/.zshrc ~/.zshrc.orig
  1. 替换zshrc

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

1

Author

Ludis

Posted on

2015-05-26

Updated on

2015-05-26

Licensed under

Comments