mac 、terminal 、shell、oh-my-zsh

  • 克隆项目到本地 ohmyzsh:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
  • 防止覆盖之前配置文件,先备份原有的
cp ~/.zshrc ~/.zshrc.orig
  • 创建配置文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
  • 设置zsh为你的默认的shell
chsh -s /bin/zsh
  • 最后重启terminal
重启terminal,大功告成!

注:

chsh是一个Linux命令,用来修改设定用户的shell;
chsh -s /bin/zsh 是设置新的shell;

你可能感兴趣的:(mac 、terminal 、shell、oh-my-zsh)