cksfv: Use _parse_help, add -g argument completion.

This commit is contained in:
Ville Skyttä 2011-05-11 23:57:12 +03:00
parent bb050024d5
commit 44a387f216

View File

@ -8,12 +8,12 @@ _cksfv()
_init_completion || return _init_completion || return
if [ $cword -eq 1 ]; then if [ $cword -eq 1 ]; then
COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0 return 0
fi fi
case "$prev" in case "$prev" in
-C) -C|-g)
_filedir -d _filedir -d
return 0 return 0
;; ;;