summaryrefslogtreecommitdiffstats
path: root/completions/gendiff
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gendiff')
-rw-r--r--completions/gendiff10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/gendiff b/completions/gendiff
index d37793f..9fea862 100644
--- a/completions/gendiff
+++ b/completions/gendiff
@@ -1,12 +1,12 @@
# gendiff(1) completion -*- shell-script -*-
-_gendiff()
+_comp_cmd_gendiff()
{
- local cur prev words cword
- _init_completion -o '@(diff|patch)' || return
+ local cur prev words cword comp_args
+ _comp_initialize -o '@(diff|patch)' -- "$@" || return
- ((cword == 1)) && _filedir -d
+ ((cword == 1)) && _comp_compgen_filedir -d
} &&
- complete -F _gendiff gendiff
+ complete -F _comp_cmd_gendiff gendiff
# ex: filetype=sh