diff options
Diffstat (limited to 'completions/lsof')
-rw-r--r-- | completions/lsof | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/lsof b/completions/lsof index e904f406..eb1e967d 100644 --- a/completions/lsof +++ b/completions/lsof @@ -6,23 +6,23 @@ _lsof() _init_completion || return case $prev in - -'?'|-h|+c|-c|-d|-F|-i|+r|-r|-s|-S|-T) + -'?' | -h | +c | -c | -d | -F | -i | +r | -r | -s | -S | -T) return ;; - -A|-k|-m|+m|-o) + -A | -k | -m | +m | -o) _filedir return ;; - +d|+D) + +d | +D) _filedir -d return ;; -D) - COMPREPLY=( $(compgen -W '? b i r u' -- "$cur") ) + COMPREPLY=($(compgen -W '? b i r u' -- "$cur")) return ;; -f) - COMPREPLY=( $(compgen -W 'c f g G n' -- "$cur") ) + COMPREPLY=($(compgen -W 'c f g G n' -- "$cur")) return ;; -g) @@ -37,20 +37,20 @@ _lsof() ;; -u) # TODO: handle ^foo exclusions, comma separated lists - COMPREPLY=( $(compgen -u -- "$cur") ) + COMPREPLY=($(compgen -u -- "$cur")) return ;; esac - if [[ "$cur" == [-+]* ]]; then - COMPREPLY=( $(compgen -W '-h -a -A -b -c +c -C +d -d +D -D +f -f -F -g + if [[ $cur == [-+]* ]]; then + COMPREPLY=($(compgen -W '-h -a -A -b -c +c -C +d -d +D -D +f -f -F -g -i -k -l +L -L +m -m +M -M -n -N -o -O -p -P +r -r -R -s -S -T -t - -u -U -v -V +w -w -x -X -z -Z' -- "$cur") ) + -u -U -v -V +w -w -x -X -z -Z' -- "$cur")) return fi _filedir } && -complete -F _lsof lsof + complete -F _lsof lsof # ex: filetype=sh |