atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
20.82k stars 561 forks source link

atuin doesn't load from `.zshrc` when it contains the plugin `zsh-vi-mode` #977

Open hsequeda opened 1 year ago

hsequeda commented 1 year ago

the line eval "$(atuin init zsh)" in my .zshrc don't take effect when the plugin zsh-vi-mode (https://github.com/jeffreytse/zsh-vi-mode) is loaded.

ellie commented 1 year ago

Is this no history recording at all, or just the shell bindings don't work? You could run atuin history list to check if the former is working

XXpE3 commented 1 year ago

Since the default initialization mode, zsh-vi-mode will overwrite the previous key bindings, this causes the key bindings of other plugins to fail.

change eval "$(atuin init zsh)" to zvm_after_init_commands+=(eval "$(atuin init zsh)") in your .zshrc.

# Atuin
zvm_after_init_commands+=(eval "$(atuin init zsh)")

See: https://github.com/jeffreytse/zsh-vi-mode#execute-extra-commands

cohml commented 9 months ago

I vote to close this issue because @XXpE3's response seems to be working for people, myself included.

zsh-vi-mode is def the most fully featured vi mode plugin for zsh, but my god does it make trouble for everything else...