diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-02-19 11:59:18 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-02-19 11:59:18 +0900 |
commit | 54891d11e09d3491dffa3f494199064583ac4862 (patch) | |
tree | 0451806d9f3cda08aaf968dae67d192bd477ca9f /shell | |
parent | 567c8303bf708bcb5822d8126a4d8654952cbfe3 (diff) |
[bash-completion] Minor optimization
Diffstat (limited to 'shell')
-rw-r--r-- | shell/completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index 9d52a6ba..b8ad4e5f 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" ;; |