Closed codehia closed 2 years ago
Make sure that the bindkey
is running after zsh-autosuggestions.zsh
has been sourced. You probably want to add the keybinding to the bottom of your .zshrc
file itself.
Just in case a zinit fellow comes here:
zinit wait lucid light-mode for \
atload"_zsh_autosuggest_start; \
ZSH_AUTOSUGGEST_STRATEGY=(history completion) \
ZSH_AUTOSUGGEST_MANUAL_REBIND=0 \
ZSH_AUTOSUGGEST_HISTORY_IGNORE=' *' \
bindkey '^p' history-search-backward; \
bindkey '^o' history-search-forward; \
bindkey '^n' autosuggest-accept; \
bindkey '^e' autosuggest-execute; \
bindkey '^a' autosuggest-toggle; \
bindkey '^s' autosuggest-clear" \
zsh-users/zsh-autosuggestions
Describe the bug
I am getting this message
when the terminal is opened.
To Reproduce
Steps to reproduce the behavior:
bindkey '^ ' autosuggest-accept
source .zshrc
Desktop