summaryrefslogtreecommitdiff
path: root/bash_completion.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-17 21:14:02 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-17 21:14:02 -0500
commit512436524cd3e70b9394d304bc9a43c6858c3695 (patch)
tree967945c6600f8e7273e47beb4792a43a2fa58bbc /bash_completion.in
Squashed 'src/devtools/' content from commit 2cda43f
git-subtree-dir: src/devtools git-subtree-split: 2cda43f4fa3d51f3cbcb05950186896eb9c01314
Diffstat (limited to 'bash_completion.in')
-rw-r--r--bash_completion.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/bash_completion.in b/bash_completion.in
new file mode 100644
index 0000000..5e4fe66
--- /dev/null
+++ b/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