diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-04-11 00:48:19 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-04-11 00:49:05 +0200 |
commit | 5ba85788ab3b934db90b42508c7a7892277b5e94 (patch) | |
tree | 501ae11830c7b1cbfa716111aa4bb18d93f72be4 /shell-completion/bash/systemd-nspawn | |
parent | 862bbf89c6e3db0a3ec265310eb6a92e0f1c375d (diff) |
bash completion: add -i/--image to nspawn
Diffstat (limited to 'shell-completion/bash/systemd-nspawn')
-rw-r--r-- | shell-completion/bash/systemd-nspawn | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn index 5b2ac8212e..f911d1b246 100644 --- a/shell-completion/bash/systemd-nspawn +++ b/shell-completion/bash/systemd-nspawn @@ -42,7 +42,7 @@ _systemd_nspawn() { [STANDALONE]='-h --help --version --private-network -b --boot --read-only -q --quiet --share-system --keep-unit --network-veth -j' [ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine -S --slice --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge - --personality' + --personality -i --image' ) _init_completion || return @@ -101,6 +101,9 @@ _systemd_nspawn() { --personality) comps='x86 x86-64' ;; + --image|-i) + comps=$( compgen -A file -- "$cur" ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 |