summaryrefslogtreecommitdiffstats
path: root/completions/gendiff
blob: d37793f60cb4d067919afaadabfa7cf4c54083b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# gendiff(1) completion                                    -*- shell-script -*-

_gendiff()
{
    local cur prev words cword
    _init_completion -o '@(diff|patch)' || return

    ((cword == 1)) && _filedir -d
} &&
    complete -F _gendiff gendiff

# ex: filetype=sh