xiaowan0 2019-06-27
查看当前系统shell
cat /etc/shells命令结果:
# List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh
使用 echo $SHELL 查看当前系统使用的shell
brew install zsh;zsh --version 命令查看 zsh 的版本;/usr/local/bin/zsh然后运行命令 chsh -s /usr/local/bin/zsh;或者通过命令chsh -s $(which zsh)设置;安装Oh My Zsh
(1)项目主页:https://github.com/robbyrussell/oh-my-zshsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"设置agnoster主题
(1)修改vim ~/.zshrc,然后把里面 ZSH_THEME 的值改为 ZSH_THEME="agnoster"引入.bash_profile配置
找到zsh的配置文件 .zshrc ,在文件的尾部加入
source .bash_profile
Cousine for Powerline