all repos — nixfiles @ 520565587104528b4d241084b6cbf72217e13e1f

System and user configuration, managed by nix and home-manager

zsh: show kubernetes status in all satoshipay repositories

Alan Pearce
commit

520565587104528b4d241084b6cbf72217e13e1f

parent

a532dd67ff224846f99390ff2bd934503f7697a0

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M user/zsh/zshrcuser/zsh/zshrc
@@ -82,7 +82,7 @@ AGKOZAK_PROMPT_DIRTRIM=0
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}")