From 7f85beccb5b6a86fd81db66876db835f9deb4e6e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 27 Apr 2024 14:11:08 +0900 Subject: [completion] Add undocumented bash variables for completion commands And allow empty FZF_COMPLETION_DIR_COMMANDS --- shell/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/completion.zsh') diff --git a/shell/completion.zsh b/shell/completion.zsh index 99cec29c..ddf5f4bb 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -327,7 +327,7 @@ fzf-completion() { # Trigger sequence given if [ ${#tokens} -gt 1 -a "$tail" = "$trigger" ]; then - d_cmds=(${=FZF_COMPLETION_DIR_COMMANDS:-cd pushd rmdir}) + d_cmds=(${=FZF_COMPLETION_DIR_COMMANDS-cd pushd rmdir}) [ -z "$trigger" ] && prefix=${tokens[-1]} || prefix=${tokens[-1]:0:-${#trigger}} if [[ $prefix = *'$('* ]] || [[ $prefix = *'<('* ]] || [[ $prefix = *'>('* ]] || [[ $prefix = *':='* ]] || [[ $prefix = *'`'* ]]; then -- cgit v1.2.3