summarylogtreecommitdiffstats
path: root/bash.completions
diff options
context:
space:
mode:
authorSean Enck2018-01-05 14:40:22 -0500
committerSean Enck2018-01-05 14:40:22 -0500
commitf437892c68e42a65904a03546e1bc65c884f30fe (patch)
treeab0bd886e0a27de28abdf38d7d384c0961c72948 /bash.completions
parentaf7a352e7b363e5c76fe15ef99da20b917c7a6bd (diff)
downloadaur-f437892c68e42a65904a03546e1bc65c884f30fe.tar.gz
adding bash completions
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