大多數命令行用戶接觸最多的是Bash,由於Bash是各個版本操做系統(Linux&Mac)的默認shell。html
查看當前使用的shellgit
$ echo $SHELL
查看系統所支持的shellgithub
$ cat /etc/shells /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh
$ chsh -s /bin/zsh
確保安裝了wget,使用shell
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
bash
確認安裝了git,使用git clone操作系統
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
插件
這時候我查看~/.zshrc,裏面用了默認的主題robbyrussell
,還能夠設置alias, 配置插件等等。命令行
http://macshuo.com/?p=676
https://github.com/robbyrussell/oh-my-zsh
http://ohmyz.sh/
http://www.open-open.com/lib/view/open1394763235862.html
http://www.cnblogs.com/growingkata/p/3734994.htmlcode