aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-14 04:37:09 -0400
committerGitHub <noreply@github.com>2020-09-14 04:37:09 -0400
commitfd7cdb25027bb33c33eacb99f1a02838eca5d684 (patch)
tree69dec5917d641a5994af90a2e302d08a7e31bbc8
parentb7a7cf65768eef79a185603cc3d1f56ce2053a9e (diff)
parent9c8bc47d8d2a091a26b3a8aa50a42f02e004e73c (diff)
downloadpodman-fd7cdb25027bb33c33eacb99f1a02838eca5d684.tar.gz
podman-fd7cdb25027bb33c33eacb99f1a02838eca5d684.tar.bz2
podman-fd7cdb25027bb33c33eacb99f1a02838eca5d684.zip
Merge pull request #7611 from rhatdan/completions
Fix completions for namespaces
-rw-r--r--completions/bash/podman8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index e8185235b..6cbad38d2 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -2315,7 +2315,7 @@ _podman_container_run() {
__podman_complete_containers_running
;;
*)
- COMPREPLY=( $( compgen -W 'host container:' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'host private container:' -- "$cur" ) )
if [ "$COMPREPLY" = "container:" ]; then
__podman_nospace
fi
@@ -2337,7 +2337,7 @@ _podman_container_run() {
__podman_complete_containers_all --cur "${cur#*:}"
;;
*)
- COMPREPLY=( $( compgen -W "$(__podman_plugins_bundled --type Network) $(__podman_networks) container:" -- "$cur") )
+ COMPREPLY=( $(compgen -W "bridge none host ns: private slirp4netns $(__podman_networks) container:" -- "$cur"))
if [ "${COMPREPLY[*]}" = "container:" ] ; then
__podman_nospace
fi
@@ -2355,7 +2355,7 @@ _podman_container_run() {
__podman_complete_containers_running --cur "${cur#*:}"
;;
*)
- COMPREPLY=( $( compgen -W 'host container:' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'host container: private' -- "$cur" ) )
if [ "$COMPREPLY" = "container:" ]; then
__podman_nospace
fi
@@ -2384,7 +2384,7 @@ _podman_container_run() {
return
;;
--userns)
- COMPREPLY=( $( compgen -W "host" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "auto container: host keep-id ns: private" -- "$cur" ) )
return
;;
--volumes-from)