Jul 30, 2017 No Comments zsh + oh-my-zsh 默认shell的最佳替代品 ## I. 使用方法 为你的MAC、Linux安装zsh ``` # Centos yum install zsh git -y ``` ## II. 安装oh-my-zsh ``` # via wget wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh ``` ## III. 设置zsh为系统默认shell ``` # 为root用户修改默认shell为zsh chsh -s /bin/zsh root # 为当前用户修改默认shell为zsh chsh -s /bin/zsh # or chsh -s `which zsh` # 恢复命令 chsh -s /bin/bash ``` * add to ~/.zshrc ``` export PATH=$PATH:/usr/local/go/bin #export PATH=$PATH:/Applications/MAMP/bin/php/php5.6.10/bin:/Users/GZM/composer:/Users/GZM/.composer/vendor/bin #export GOPATH=/Users/GZM/work/go #export GOPATH=/Volumes/Transcend/git/360/private_cloud_server_code/tools/gowork/ #export GOBIN=$GOPATH/bin #export GO15VENDOREXPERIMENT=1 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 ``` ## IV. 插件 [Plugins](https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins) 最后更新于 2017-07-30 13:45:30 并被添加「」标签,已有 4558 位童鞋阅读过。 本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处