From 63856c2d92b3a21a1bff381a78e341361785bddd Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Tue, 11 Oct 2016 16:29:33 -0400 Subject: [PATCH] add pod bash completion `oc exec` --- contrib/completions/bash/oc | 2 +- contrib/completions/zsh/oc | 2 +- pkg/cmd/cli/cli_bashcomp_func.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/completions/bash/oc b/contrib/completions/bash/oc index 3c83f633aec8..0f2b1633acb5 100644 --- a/contrib/completions/bash/oc +++ b/contrib/completions/bash/oc @@ -282,7 +282,7 @@ __custom_func() { ;; # first arg is a pod name - oc_rsh) + oc_rsh | oc_exec) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get pods fi; diff --git a/contrib/completions/zsh/oc b/contrib/completions/zsh/oc index 131d0478f014..e50c1390582c 100644 --- a/contrib/completions/zsh/oc +++ b/contrib/completions/zsh/oc @@ -443,7 +443,7 @@ __custom_func() { ;; # first arg is a pod name - oc_rsh) + oc_rsh | oc_exec) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get pods fi; diff --git a/pkg/cmd/cli/cli_bashcomp_func.go b/pkg/cmd/cli/cli_bashcomp_func.go index e22418d8040f..607a5ea250a6 100644 --- a/pkg/cmd/cli/cli_bashcomp_func.go +++ b/pkg/cmd/cli/cli_bashcomp_func.go @@ -60,7 +60,7 @@ __custom_func() { ;; # first arg is a pod name - oc_rsh) + oc_rsh | oc_exec) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get pods fi;