Skip to content

Commit f412a4b

Browse files
committed
adding in suggested change from #202
1 parent b6f5822 commit f412a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kube-ps1.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Kubernetes prompt helper for bash/zsh
44
# Displays current context and namespace
55

6-
# Copyright 2024 Jon Mosco
6+
# Copyright 2025 Jon Mosco
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.
@@ -378,7 +378,7 @@ kubeoff() {
378378
kube_ps1() {
379379
[[ "${KUBE_PS1_ENABLED}" == "off" ]] && return
380380
[[ -z "${KUBE_PS1_CONTEXT}" ]] && [[ "${KUBE_PS1_CONTEXT_ENABLE}" == true ]] && return
381-
[[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == false ]] && return
381+
[[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == true ]] && return
382382

383383

384384
local KUBE_PS1

0 commit comments

Comments
 (0)