tl;dr
oh-my-zshで直近のコマンドをサジェストしたい
オワコンと言われている? zsh
、oh-my-zsh
ではありますが
使用しているので、書いてみます。
まずは移動
cd ./.oh-my-zsh
各自、移動。

いた。
pluginsへ移動
cd plugins
zsh-autosuggestionsをクローン
zsh-autosuggestionsをクローン。
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
.zshrcに記載
.zshrc
で plugins
をgrepして
zsh-autosuggestions
を追加。
plugins=(
git
zsh-autosuggestions
)
誤って、カンマ入れるとこうなるよ。
[oh-my-zsh] plugin 'git,' not found
設定更新。
source ~/.zshrc
やったー

補完を確定するには →
か ctrl + f
か ctrl + e
なんか薄くてみにくい
補完の文字がデフォだとみにくい。。
と思ったら、設定変更できるみたい。
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=your_color_code'
fg=your_color_code ってなんすか?
って思って調べたら、ここにあった。
13
を選択!
.zshrc
に追加!
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=13'
設定更新!
source ~/.zshrc
やったー!
