diff options
Diffstat (limited to 'debian/bash_completion/contrib/cksfv')
-rw-r--r-- | debian/bash_completion/contrib/cksfv | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/bash_completion/contrib/cksfv b/debian/bash_completion/contrib/cksfv new file mode 100644 index 0000000..3163f66 --- /dev/null +++ b/debian/bash_completion/contrib/cksfv @@ -0,0 +1,29 @@ +# 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 |