From 0c6a8687b54f1803c642d0c15be55cf5813687e9 Mon Sep 17 00:00:00 2001 From: Aaron Kollasch Date: Sat, 3 Sep 2022 00:42:11 -0400 Subject: [PATCH] Fix interactive completion with zsh-autocomplete --- templates/zsh.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/zsh.txt b/templates/zsh.txt index 3abb781..b6ad309 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -112,6 +112,10 @@ if [[ -o zle ]]; then else __zoxide_result='' fi + if [[ -v functions[.autocomplete._complete] ]]; then + # zsh-autocomplete needs a match or it will run __zoxide_z_complete multiple times + compadd "" + fi \builtin printf '\e[5n' fi }