blob: 3163f661750dd2406434234ac19242b63ffe4ce6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|