diff options
author | Alan Pearce | 2020-06-18 11:25:01 +0200 |
---|---|---|
committer | Alan Pearce | 2020-06-18 11:25:01 +0200 |
commit | 520565587104528b4d241084b6cbf72217e13e1f (patch) | |
tree | a26c0d435f1cde46d4f8580440871aec42b11428 /user/zsh/zshrc | |
parent | a532dd67ff224846f99390ff2bd934503f7697a0 (diff) | |
download | nixfiles-520565587104528b4d241084b6cbf72217e13e1f.tar.lz nixfiles-520565587104528b4d241084b6cbf72217e13e1f.tar.zst nixfiles-520565587104528b4d241084b6cbf72217e13e1f.zip |
zsh: show kubernetes status in all satoshipay repositories
Diffstat (limited to 'user/zsh/zshrc')
-rw-r--r-- | user/zsh/zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 771e96db..889a9490 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -82,7 +82,7 @@ else AGKOZAK_LEFT_PROMPT_ONLY=${+SSH_CLIENT} check_kubectl_context () { - if [[ "$PWD" =~ /kubernetes || "$PWD" =~ /monorepo ]] + if [[ "$PWD" =~ satoshipay ]] then kubectl_context=$(kubectl config current-context) kubectl_namespace=$(kubectl config view -o jsonpath="{.contexts[?(@.name==\"${kubectl_context}\")].context.namespace}") |