From 54891d11e09d3491dffa3f494199064583ac4862 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 19 Feb 2020 11:59:18 +0900 Subject: [PATCH] [bash-completion] Minor optimization --- shell/completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/completion.bash b/shell/completion.bash index 9d52a6ba821..b8ad4e5f20c 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -321,8 +321,8 @@ _fzf_setup_completion() { return 1 fi shift + eval "$(complete -p "$@" 2> /dev/null | grep -v "$fn" | __fzf_orig_completion_filter)" for cmd in "$@"; do - eval "$(complete -p "$cmd" 2> /dev/null | grep -v "$fn" | __fzf_orig_completion_filter)" case "$kind" in dir) __fzf_defc "$cmd" "$fn" "-o nospace -o dirnames" ;; var) __fzf_defc "$cmd" "$fn" "-o default -o nospace -v" ;;