From f414efb8115e6b621dd06a2a967f998a14aa46fc Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Tue, 6 Sep 2022 00:52:23 +0530 Subject: [PATCH] No need of helper function --- templates/zsh.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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