oh-my-zshで入力履歴を表示して、補完する
tl;dr
oh-my-zshで直近のコマンドをサジェストしたい
oh-my-zshで直近のコマンドをサジェストしたい
オワコンと言われている? zsh
、oh-my-zsh
ではありますが
使用しているので、書いてみます。
まずは移動
cd ./.oh-my-zsh
cd ./.oh-my-zsh
各自、移動。
いた。
pluginsへ移動
cd plugins
zsh-autosuggestionsをクローン
cd plugins
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
やったー!
Author And Source
この問題について(oh-my-zshで入力履歴を表示して、補完する), 我々は、より多くの情報をここで見つけました https://qiita.com/mochizuki-pg/items/3f5e25ccc2db3bc26e08著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .