bash completion: add --template to nspawn
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 20 Mar 2016 17:55:58 +0000 (17:55 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 20 Mar 2016 17:55:58 +0000 (17:55 +0000)
shell-completion/bash/systemd-nspawn

index 8318f6e..0cf249d 100644 (file)
@@ -60,14 +60,14 @@ _systemd_nspawn() {
                       [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 -i --image --tmpfs --volatile
-                             --network-macvlan --kill-signal'
+                             --network-macvlan --kill-signal --template'
         )
 
         _init_completion || return
 
         if __contains_word "$prev" ${OPTS[ARG]}; then
                 case $prev in
-                        --directory|-D)
+                        --directory|-D|--template)
                                 compopt -o nospace
                                 comps=$(compgen -S/ -A directory -- "$cur" )
                         ;;