diff options
author | Sean Enck | 2018-01-05 14:40:22 -0500 |
---|---|---|
committer | Sean Enck | 2018-01-05 14:40:22 -0500 |
commit | f437892c68e42a65904a03546e1bc65c884f30fe (patch) | |
tree | ab0bd886e0a27de28abdf38d7d384c0961c72948 /bash.completions | |
parent | af7a352e7b363e5c76fe15ef99da20b917c7a6bd (diff) | |
download | aur-f437892c68e42a65904a03546e1bc65c884f30fe.tar.gz |
adding bash completions
Diffstat (limited to 'bash.completions')
-rw-r--r-- | bash.completions | 11 |
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 |