13 lines
267 B
Bash
13 lines
267 B
Bash
# 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
|