diff --git a/templates/zsh.txt b/templates/zsh.txt index 2db8a2a..c850847 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -122,12 +122,7 @@ if [[ -o zle ]]; then fi } - function __zoxide_z_complete_helper() { - \builtin zle reset-prompt - } - - \builtin zle -N __zoxide_z_complete_helper - \builtin bindkey "\e[0n" __zoxide_z_complete_helper + \builtin bindkey "\e[0n" 'reset-prompt' if [[ "${+functions[compdef]}" -ne 0 ]]; then \compdef -d {{cmd}} \compdef -d {{cmd}}i