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