X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-nspawn;h=f911d1b2469ee34404f1fbb159939e060a147924;hp=5b2ac8212e12625522598be121adb9ac42648763;hb=becad8f1ed696433b9841cbb9c4603c303338d30;hpb=0d6883b6a870b66c8c70e43695d22de96aab68e7;ds=sidebyside diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn index 5b2ac8212..f911d1b24 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