We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f5822 commit f412a4bCopy full SHA for f412a4b
kube-ps1.sh
@@ -3,7 +3,7 @@
3
# Kubernetes prompt helper for bash/zsh
4
# Displays current context and namespace
5
6
-# Copyright 2024 Jon Mosco
+# Copyright 2025 Jon Mosco
7
#
8
# Licensed under the Apache License, Version 2.0 (the "License");
9
# you may not use this file except in compliance with the License.
@@ -378,7 +378,7 @@ kubeoff() {
378
kube_ps1() {
379
[[ "${KUBE_PS1_ENABLED}" == "off" ]] && return
380
[[ -z "${KUBE_PS1_CONTEXT}" ]] && [[ "${KUBE_PS1_CONTEXT_ENABLE}" == true ]] && return
381
- [[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == false ]] && return
+ [[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == true ]] && return
382
383
384
local KUBE_PS1
0 commit comments