好用的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~

 

Referencehtml

安裝zsh,以及選擇一種frameworkpython

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

而後推薦一些插件:git

  • 自動補齊command插件 https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
  • 語法高亮zsh-syntax-highlighting https://github.com/zsh-users/zsh-syntax-highlighting
相關文章
相關標籤/搜索