30 lines
550 B
Plaintext
Raw Normal View History

# cksfv completion by Chris <xris@forevermore.net> -*- shell-script -*-
_cksfv()
{
local cur prev words cword
_init_completion || return
if [ $cword -eq 1 ]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
2009-10-04 19:42:50 +02:00
return 0
fi
case "$prev" in
-C|-g)
2009-12-30 00:41:15 +01:00
_filedir -d
return 0
;;
-f)
_filedir 'sfv'
return 0
;;
2009-10-04 19:42:50 +02:00
esac
2009-10-04 19:42:50 +02:00
_filedir
return 0
2009-06-08 21:22:43 +03:00
} &&
complete -F _cksfv cksfv
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh