mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-27 12:42:41 +00:00
[bash-completion] Minor optimization
This commit is contained in:
parent
567c8303bf
commit
54891d11e0
@ -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" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user