From 5a4d0051bee748d5538cf650a97c3298186dcd16 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 17 Sep 2025 16:48:43 +0200 Subject: [PATCH] zsh: Fix carapace and fzf-tab compatibility As mentioned in https://github.com/carapace-sh/carapace-bin/issues/2819#issuecomment-3092307945, fzf-tab directory completes are empty if you try to complete on a directory without any prior input. I.e.: `ls -hal ~/.config/a` shows output (dirs starting with a). `ls -hal ~/.config/` is empty. This fixes the issue by making the query string use the full inserted value. --- terminal/.config/zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminal/.config/zsh/.zshrc b/terminal/.config/zsh/.zshrc index ae3ff19..4bea925 100644 --- a/terminal/.config/zsh/.zshrc +++ b/terminal/.config/zsh/.zshrc @@ -128,6 +128,9 @@ eval "$(zoxide init zsh)" eval "$(atuin init zsh)" export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional source <(carapace _carapace) +# make fzf-tab compatible with carapace +# see +zstyle ':fzf-tab:*' query-string '' # Speed up autocomplete, force prefix mapping zstyle ':completion:*' accept-exact '*(N)'