2004-03-30 20:39:11 +00:00

30 lines
442 B
Plaintext

# cksfv completion by Chris <xris@forevermore.net>
#
# $Id: cksfv,v 1.3 2004/03/30 22:39:11 ianmacd Exp $
_cksfv()
{
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- $cur ) )
return 0
fi
case "${COMP_WORDS[$COMP_CWORD-1]}" in
-C)
_filedir -d
return 0
;;
-f)
_filedir 'sfv'
return 0
;;
esac
_filedir
return 0
}
complete -F _cksfv cksfv