好用的shell可以事半功倍

程序员离不开shell,一个好用的shell可以事半功倍,推荐zsh以及一些插件

 

# install zsh
$ brew install zsh

# install a framework, we recommend to use Oh My Zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# set zsh to your default shell
$ chsh -s $(which zsh)

# some popular plugin, edit ~/.zshrc
plugins=(git colored-man colorize pip python brew osx zsh-syntax-highlighting)

# add another plugin, make your life easy

# if you are using 'Oh My Zsh', it's easy to install that plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plugins=(zsh-autosuggestions)

# start a new terminal, enjoy~

 

Reference

安装zsh,以及选择一种framework

  • 'Oh My Zsh' https://sourabhbajaj.com/mac-setup/iTerm/zsh.html

然后推荐一些插件:

  • 自动补齐command插件 https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
  • 语法高亮zsh-syntax-highlighting https://github.com/zsh-users/zsh-syntax-highlighting
posted @ 2018-08-14 14:53  yanghuahui  阅读(1129)  评论(0编辑  收藏  举报