mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-13 08:30:08 +00:00
fix variable name typo
This commit is contained in:
parent
c11c3a55de
commit
932e4edeaf
1 changed files with 2 additions and 2 deletions
|
@ -1355,9 +1355,9 @@ prompt_dir_writable() {
|
||||||
|
|
||||||
# Kubernetes Current Context
|
# Kubernetes Current Context
|
||||||
prompt_kubecontext() {
|
prompt_kubecontext() {
|
||||||
local kubectl=$(kubectl version 2>/dev/null)
|
local kubectl_version=$(kubectl version 2>/dev/null)
|
||||||
|
|
||||||
if [[ -n "kubectl_version" ]]; then
|
if [[ -n "$kubectl_version" ]]; then
|
||||||
# Get the current Kubernetes config context's namespaece
|
# Get the current Kubernetes config context's namespaece
|
||||||
local k8s_namespace=$(kubectl config get-contexts --no-headers | grep '*' | awk '{print $5}')
|
local k8s_namespace=$(kubectl config get-contexts --no-headers | grep '*' | awk '{print $5}')
|
||||||
# Get the current Kuberenetes context
|
# Get the current Kuberenetes context
|
||||||
|
|
Loading…
Reference in a new issue