1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

Merge pull request #554 from derekbassett/Prompt_Hang_Kubecontext_Minikube

Fixed prompt hangs on kubectl version command
This commit is contained in:
Ben Hilburn 2017-07-11 19:13:21 -04:00 committed by GitHub
commit 92ff579d5b

View file

@ -1366,7 +1366,7 @@ prompt_dir_writable() {
# Kubernetes Current Context
prompt_kubecontext() {
local kubectl_version=$(kubectl version 2>/dev/null)
local kubectl_version=$(kubectl version --client 2>/dev/null)
if [[ -n "$kubectl_version" ]]; then
# Get the current Kubernetes config context's namespaece