diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-02 05:24:28 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-02 10:33:24 +0200 |
commit | 453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 (patch) | |
tree | bd8ee0778dadb229581e205f19fd743e4e965d69 /bash_completion.in | |
parent | 6e086f0e703194fcefe0040e2b5e967fa5ab307f (diff) | |
download | devtools32-453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1.tar.xz |
mkarchroot: Refactor chroot running into a new script
Separates the two features of mkarchroot. Provides users of the new
arch-nspawn with the full feature set of systemd-nspawn.
For example, this can be used to bind custom directories into the chroot.
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 |