2011-11-01 22:14:45 +02:00
|
|
|
# cksfv completion by Chris <xris@forevermore.net> -*- shell-script -*-
|
2003-01-21 07:24:01 +00:00
|
|
|
|
|
|
|
_cksfv()
|
|
|
|
{
|
2011-04-20 14:42:30 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2010-02-08 17:25:08 +01:00
|
|
|
|
2011-04-20 14:42:30 +03:00
|
|
|
if [ $cword -eq 1 ]; then
|
2011-05-11 23:57:12 +03:00
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
2009-10-04 19:42:50 +02:00
|
|
|
return 0
|
|
|
|
fi
|
2009-07-25 13:38:42 +03:00
|
|
|
|
2010-02-08 17:25:08 +01:00
|
|
|
case "$prev" in
|
2011-05-11 23:57:12 +03:00
|
|
|
-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-07-25 13:38:42 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
_filedir
|
|
|
|
return 0
|
2009-06-08 21:22:43 +03:00
|
|
|
} &&
|
2003-01-21 07:24:01 +00:00
|
|
|
complete -F _cksfv cksfv
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|