diff options
Diffstat (limited to 'src/devtools/bash_completion.in')
-rw-r--r-- | src/devtools/bash_completion.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/devtools/bash_completion.in b/src/devtools/bash_completion.in new file mode 100644 index 0000000..5e4fe66 --- /dev/null +++ b/src/devtools/bash_completion.in @@ -0,0 +1,23 @@ +#!/bin/bash + +_mkarchroot() { + local cur + COMPREPLY=() + _get_comp_words_by_ref cur + + case $cur in + -*) + COMPREPLY=( $( compgen -W '-C -M -c -f -h -n -r -u' -- "$cur" ) ) + ;; + *) + _filedir + return 0 + ;; + esac + + true +} && +complete -F _mkarchroot archroot + + +# ex:et ts=2 sw=2 ft=sh |