summaryrefslogtreecommitdiffstats
path: root/completions/cksfv
blob: 406c8def6c337354430b66e5350057c7b1cf41d2 (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>         -*- shell-script -*-

_comp_cmd_cksfv()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    if ((cword == 1)); then
        _comp_compgen_help
        return
    fi

    case "$prev" in
        -*C | -*g)
            _comp_compgen_filedir -d
            return
            ;;
        -*f)
            _comp_compgen_filedir 'sfv'
            return
            ;;
    esac

    _comp_compgen_filedir

} &&
    complete -F _comp_cmd_cksfv cksfv

# ex: filetype=sh