diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-15 11:00:02 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-15 11:00:02 -0600 |
commit | eba252eca59c3d110e90c97d114bacceca343426 (patch) | |
tree | c771345d885f449648b2e252bcc4c8fdd6d2d30c /bash_completion.in | |
parent | bf8513ae631484a0c292ad085ea7ede9859f8e0f (diff) | |
parent | 453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 (diff) | |
download | devtools32-eba252eca59c3d110e90c97d114bacceca343426.tar.xz |
Merge commit '4535'
Conflicts:
makechrootpkg.in
mkarchroot.in
Diffstat (limited to 'bash_completion.in')
-rw-r--r-- | bash_completion.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bash_completion.in b/bash_completion.in index 9395d3a..d9948af 100644 --- a/bash_completion.in +++ b/bash_completion.in @@ -53,7 +53,7 @@ _mkarchroot() { case $cur in -*) - COMPREPLY=( $( compgen -W '-C -M -c -h -n -r -u' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '-C -M -c -h' -- "$cur" ) ) ;; *) _filedir @@ -65,5 +65,22 @@ _mkarchroot() { } && complete -F _mkarchroot mkarchroot +_arch-nspawn() { + local cur + COMPREPLY=() + _get_comp_words_by_ref cur + + case $cur in + -*) + COMPREPLY=( $( compgen -W '-C -M -c -h' -- "$cur" ) ) + ;; + *) + _filedir + return 0 + ;; + esac + true +} && +complete -F _arch-nspawn arch-nspawn # ex:et ts=2 sw=2 ft=sh |