geometry-zsh / geometry

geometry is a minimal, fully customizable and composable zsh prompt theme
ISC License
921 stars 94 forks source link

Feature/kube improvements #264

Closed olegTarassov closed 4 years ago

olegTarassov commented 4 years ago

1) Test KUBECONFIG global variable instead of file

olegTarassov commented 4 years ago

Just Pushed the latest changes that are based on your recommendation. I have one thing that I dont like or know how to fix in single line:

  kube_namespace="$(kubectl config view -o "jsonpath={.contexts[?(@.name==\"${kube_context}\")].context.namespace}" 2> /dev/null)"
  kube_namespace=${kube_namespace:=default}

I believe there might be a way to overwrite if empty to default

jedahan commented 4 years ago

Thanks for the updates, I rebased and merged in #266