diff --git a/templates/zsh.txt b/templates/zsh.txt index 684e2ef..d110154 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -104,9 +104,12 @@ if [[ -o zle ]]; then # shellcheck disable=SC2086 __zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result='' + # Set a result to ensure completion doesn't re-run + compadd -Q "" + # Bind '\e[0n' to helper function. \builtin bindkey '\e[0n' '__zoxide_z_complete_helper' - # Send '\e[0n' to console input. + # Sends query device status code, which results in a '\e[0n' being sent to console input. \builtin printf '\e[5n' fi