]> git.proxmox.com Git - pve-client.git/blobdiff - pveclient.bash-completion
add simple bash completion code
[pve-client.git] / pveclient.bash-completion
diff --git a/pveclient.bash-completion b/pveclient.bash-completion
new file mode 100644 (file)
index 0000000..983b432
--- /dev/null
@@ -0,0 +1,8 @@
+# pveclient bash completion
+
+# see http://tiswww.case.edu/php/chet/bash/FAQ
+# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
+# this modifies global var, but I found no better way
+COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
+
+complete -C 'pveclient bashcomplete' pveclient