summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/systemd-nspawn
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-04-25 20:07:03 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-26 08:06:23 +0200
commitafa879c3b42bcb948e2a01eb378a24f26fd64a6f (patch)
tree53f78a320ff7e305204616ad9f2b017fc97469da /shell-completion/bash/systemd-nspawn
parentbash-completion: process only non-template units for systemctl isolate (diff)
downloadsystemd-afa879c3b42bcb948e2a01eb378a24f26fd64a6f.tar.xz
systemd-afa879c3b42bcb948e2a01eb378a24f26fd64a6f.zip
bash-completion: accept files for --bind/--bind-ro options
Diffstat (limited to 'shell-completion/bash/systemd-nspawn')
-rw-r--r--shell-completion/bash/systemd-nspawn4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn
index b4bcba8882..941ea9090b 100644
--- a/shell-completion/bash/systemd-nspawn
+++ b/shell-completion/bash/systemd-nspawn
@@ -102,8 +102,8 @@ _systemd_nspawn() {
comps='no auto guest try-guest host try-host'
;;
--bind|--bind-ro)
- compopt -o nospace
- comps=$(compgen -S/ -A directory -- "$cur" )
+ compopt -o nospace -o filenames
+ comps=$(compgen -f -- "$cur" )
;;
--tmpfs)
compopt -o nospace