Skip to content
Myr

[bash-completion] Minor optimization

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 567c830 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:shell/completion.bash+1 added-1 removed
319 unmodified lines
320 echo "usage: ${FUNCNAME[0]} path|dir|var|alias|host COMMANDS..."321 return 1322 fi323 shift324 eval "$(complete -p "$@" 2> /dev/null | grep -v "$fn" | __fzf_orig_completion_filter)"325 for cmd in "$@"; do325 eval "$(complete -p "$cmd" 2> /dev/null | grep -v "$fn" | __fzf_orig_completion_filter)"326 case "$kind" in327 dir) __fzf_defc "$cmd" "$fn" "-o nospace -o dirnames" ;;328 var) __fzf_defc "$cmd" "$fn" "-o default -o nospace -v" ;;329 alias) __fzf_defc "$cmd" "$fn" "-a" ;;
11 unmodified lines