最强shell: zsh

434 阅读1分钟

zsh被称为最强shell, 但由于配置复杂令人望而却步,而oh-my-zsh的出现让rookie程序员也能使用了

使用步骤 Mac

  1. 若系统未安装zsh, 则用brew install zsh进行安装
  2. chsh -s $(which zsh)zsh设为默认shell
  3. 安装oh-my-zsh: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  4. 修改~/.zshrcZSH_THEME可以修改主题,主题列表
  5. 修改~/.zshrcplugin可以使用插件,插件列表
  6. 外部插件使用方法:以自动提示插件incr为例,下载包后放入~/.oh-my-zsh/plugins/incr下,修改命名为incr.plugin.zsh, 然后将incr加入插件配置列表
  7. source ~/.zshrc使配置立即生效