# gendiff(1) completion -*- shell-script -*- _gendiff() { local cur prev words cword _init_completion -o @(diff|patch) || return [[ $cword -eq 1 ]] && _filedir -d } && complete -F _gendiff gendiff # ex: ts=4 sw=4 et filetype=sh