ターミナル(Linux)でbashからzshに変更
達人たちはみんなzshを使っているらしいので、自分も真似したくなった。
ゴールはこんな感じ。入力補完が強力だしシェルスクリプトも書きやすい
# zshに切り替え
$ chsh -s /bin/zsh
# zshインストール
$ brew update
$ brew install zsh
# zshにパスを記述
$ sudo vim /etc/shells
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
# 追加
/usr/local/bin/zsh
$ chsh -s /usr/local/bin/zsh
$ vim .zpreztorc
# 30行目あたり
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'syntax-highlighting' \ #追加
'autosuggestions' \ #追加
'prompt'
#120行目あたり
zstyle ':prezto:module:prompt' theme 'pure' テーマ変更
$ source ~/.zpreztorc
プロンプトがおしゃれに変わっていると思います。