summaryrefslogtreecommitdiff
path: root/completions/complete
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
commit5732da2af736c40cf693354485446ab4867ecb4d (patch)
tree76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/complete
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/complete')
-rw-r--r--completions/complete31
1 files changed, 15 insertions, 16 deletions
diff --git a/completions/complete b/completions/complete
index 5de2d168..0519744d 100644
--- a/completions/complete
+++ b/completions/complete
@@ -6,43 +6,42 @@ _complete()
_init_completion || return
case $prev in
- -o)
- COMPREPLY=( $( compgen -W 'bashdefault default dirnames filenames
- nospace plusdirs' -- "$cur" ) )
+ -*o)
+ COMPREPLY=( $(compgen -W 'bashdefault default dirnames filenames
+ nospace plusdirs' -- "$cur") )
return
;;
- -A)
- COMPREPLY=( $( compgen -W 'alias arrayvar binding builtin command
+ -*A)
+ COMPREPLY=( $(compgen -W 'alias arrayvar binding builtin command
directory disabled enabled export file function group helptopic
hostname job keyword running service setopt shopt signal
- stopped user variable' -- "$cur" ) )
+ stopped user variable' -- "$cur") )
return
;;
- -C)
- COMPREPLY=( $( compgen -A command -- "$cur" ) )
+ -*C)
+ COMPREPLY=( $(compgen -A command -- "$cur") )
return
;;
- -F)
- COMPREPLY=( $( compgen -A function -- "$cur" ) )
+ -*F)
+ COMPREPLY=( $(compgen -A function -- "$cur") )
return
;;
- -p|-r)
- COMPREPLY=( $( complete -p | command sed -e 's|.* ||' ) )
- COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
+ -*p|-*r)
+ COMPREPLY=( $(complete -p | command sed -e 's|.* ||') )
+ COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- "$cur") )
return
;;
-
esac
if [[ "$cur" == -* ]]; then
# relevant options completion
local opts="-a -b -c -d -e -f -g -j -k -o -s -u -v -A -G -W -P -S -X"
[[ $1 != compgen ]] && opts+=" -F -C"
- COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
else
- COMPREPLY=( $( compgen -A command -- "$cur" ) )
+ COMPREPLY=( $(compgen -A command -- "$cur") )
fi
} &&
complete -F _complete compgen complete