From 512436524cd3e70b9394d304bc9a43c6858c3695 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 17 Jan 2013 21:14:02 -0500 Subject: Squashed 'src/devtools/' content from commit 2cda43f git-subtree-dir: src/devtools git-subtree-split: 2cda43f4fa3d51f3cbcb05950186896eb9c01314 --- bash_completion.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bash_completion.in (limited to 'bash_completion.in') 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 -- cgit v1.2.3-54-g00ecf