From 21b322662cf13b0b9b3707d33b905f2f820f7b0c Mon Sep 17 00:00:00 2001 From: Andriy Knysh Date: Thu, 12 Apr 2018 11:55:39 -0400 Subject: [PATCH] Use `BANNER` instead of `KOPS_CLUSTER_NAME` for prompt (#121) --- rootfs/etc/profile.d/prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/profile.d/prompt.sh b/rootfs/etc/profile.d/prompt.sh index 929f8713d..2b08c14d3 100755 --- a/rootfs/etc/profile.d/prompt.sh +++ b/rootfs/etc/profile.d/prompt.sh @@ -46,8 +46,8 @@ function geodesic_prompt() { ROLE_PROMPT="(none)" fi - if [ -n "${KOPS_CLUSTER_NAME}" ]; then - PS1=$' ${TWO_JOINED_SQUARES}'" ${KOPS_CLUSTER_NAME}\n"$'${STATUS}'" $ROLE_PROMPT \W "$'${BLACK_RIGHTWARDS_ARROWHEAD} ' + if [ -n "${BANNER}" ]; then + PS1=$' ${TWO_JOINED_SQUARES}'" ${BANNER}\n"$'${STATUS}'" $ROLE_PROMPT \W "$'${BLACK_RIGHTWARDS_ARROWHEAD} ' else PS1=$'${STATUS}'" $ROLE_PROMPT \W "$'${BLACK_RIGHTWARDS_ARROWHEAD} ' fi