summaryrefslogtreecommitdiffstats
path: root/completions/xrdb
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xrdb')
-rw-r--r--completions/xrdb14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/xrdb b/completions/xrdb
index f46f90b..0bd2598 100644
--- a/completions/xrdb
+++ b/completions/xrdb
@@ -1,27 +1,27 @@
# xrdb(1) completion -*- shell-script -*-
-_xrdb()
+_comp_cmd_xrdb()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
-backup | -display | -help)
return
;;
-cpp | -edit)
- _filedir
+ _comp_compgen_filedir
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ _comp_compgen_help
return
fi
- _filedir
+ _comp_compgen_filedir
} &&
- complete -F _xrdb xrdb
+ complete -F _comp_cmd_xrdb xrdb
# ex: filetype=sh