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
if [ $cword -eq 1 ]; then
COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi
case "$prev" in
-C)
-C|-g)
_filedir -d
return 0
;;