ucan-lab / tips

5 stars 0 forks source link

Mac zsh #40

Closed ucan-lab closed 6 years ago

ucan-lab commented 6 years ago

zsh install

$ brew install zsh

デフォルトシェルをfishに変更

$ chsh -s `which zsh`

chsh: /usr/local/bin/zsh: non-standard shell エラーが出た場合

$ echo `which zsh` | sudo tee -a /etc/shells
$ chsh -s `which zsh`

デフォルトシェルをbashに戻したい場合

$ chsh -s /bin/bash
ucan-lab commented 6 years ago

zsh用プロンプト「Pure」をインストールする

https://suin.io/565

$ npm install --global pure-prompt
$ echo "autoload -U promptinit; promptinit" | tee -a ~/.zshrc
$ echo "prompt pure" | tee -a ~/.zshrc
ucan-lab commented 6 years ago

zsh 自動サジェスト

https://github.com/zsh-users/zsh-autosuggestions

$ brew install zsh-autosuggestions

~/.zshrc へ追記

$ echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" | tee -a ~/.zshrc
ucan-lab commented 6 years ago

43 こっちを採用