summarylogtreecommitdiffstats
path: root/bash.completions
diff options
context:
space:
mode:
Diffstat (limited to 'bash.completions')
-rw-r--r--bash.completions11
1 files changed, 11 insertions, 0 deletions
diff --git a/bash.completions b/bash.completions
new file mode 100644
index 000000000000..831d07890137
--- /dev/null
+++ b/bash.completions
@@ -0,0 +1,11 @@
+function _pyxstitch()
+{
+ local cur opts
+ if [ $COMP_CWORD -eq 1 ]; then
+ cur=${COMP_WORDS[COMP_CWORD]}
+ opts=$(pyxstitch --help | sed "s/^\s*//g;s/, //g;s/^-h//g" | grep "^\-" | cut -d " " -f 1)
+ COMPREPLY=( $(compgen -W "$opts" -- $cur) )
+ fi
+}
+
+complete -F _pyxstitch pyxstitch