summaryrefslogtreecommitdiff
path: root/completions/ccze
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/ccze
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/ccze')
-rw-r--r--completions/ccze22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/ccze b/completions/ccze
index c803408b..7c17f364 100644
--- a/completions/ccze
+++ b/completions/ccze
@@ -9,33 +9,33 @@ _ccze()
-'?'|--help|--usage|-V|--version)
return
;;
- -a|--argument|-c|--color)
+ --argument|--color|-!(-*)[ac])
# TODO?
return
;;
- -F|--rcfile)
+ --rcfile|-!(-*)F)
_filedir
return
;;
- -m|--mode)
- COMPREPLY=( $( compgen -W "curses ansi html" -- "$cur" ) )
+ --mode|-!(-*)m)
+ COMPREPLY=( $(compgen -W "curses ansi html" -- "$cur") )
return
;;
- -o|--option)
+ --option|-!(-*)o)
local -a opts=(scroll wordcolor lookups transparent cssfile)
- COMPREPLY=( $( compgen -W '${opts[@]} ${opts[@]/#/no}' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '${opts[@]} ${opts[@]/#/no}' -- "$cur") )
return
;;
- -p|--plugin)
- COMPREPLY=( $( compgen -W '$( "$1" --list-plugins |
- sed -ne "s/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p" )' \
- -- "$cur" ) )
+ --plugin|-!(-*)p)
+ COMPREPLY=( $(compgen -W '$("$1" --list-plugins | command \
+ sed -ne "s/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p")' \
+ -- "$cur") )
return
esac
$split && return
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
} &&
complete -F _ccze ccze