質問

Is there a way to do the type of auto-suggestion Fish does in Zsh?

役に立ちましたか?

解決

https://github.com/tarruda/zsh-autosuggestions does exactly what I wanted. If you want fish-style autopredictions in zsh, use that.

他のヒント

Zsh has predict, run the commands below this and then hit Ctrl-X 1 or just type predict-on to give it a try

#-*-shell-script-*-
autoload predict-on
autoload predict-off

# you may also wish to bind it to some keys...
zle -N predict-on
zle -N predict-off
bindkey '^X1' predict-on
bindkey '^X2' predict-off
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top