You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are commands that have different completion depending on an environment variable.
E.g. kubeconfig (and oc) will return the pods (in the configured namespace) of the cluster defined in KUBECONFIG.
so
export KUBECONFIG=/path/to/a/kube/config
kubeconfig get po [TAB]
will return the pods in the cluster (and namespace) configured in KUBECONFIG.
Now an alias like alias k-test="KUBECONFIG=/path/to/kube/config kubecfg" with _complete_alias will complete using kubecfg without the KUBECONFIG environment.
Is it possible to somehow set the environment for this specific completion?
The text was updated successfully, but these errors were encountered:
There are commands that have different completion depending on an environment variable.
E.g.
kubeconfig
(andoc
) will return the pods (in the configured namespace) of the cluster defined inKUBECONFIG
.so
will return the pods in the cluster (and namespace) configured in KUBECONFIG.
Now an alias like
alias k-test="KUBECONFIG=/path/to/kube/config kubecfg"
with_complete_alias
will complete usingkubecfg
without theKUBECONFIG
environment.Is it possible to somehow set the environment for this specific completion?
The text was updated successfully, but these errors were encountered: