No need of helper function

This commit is contained in:
Ajeet D'Souza 2022-09-06 00:52:23 +05:30
parent 7724267273
commit f414efb811
1 changed files with 1 additions and 6 deletions

View File

@ -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