Skip to content

Commit

Permalink
Use BANNER instead of KOPS_CLUSTER_NAME for prompt (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Apr 12, 2018
1 parent aecc9eb commit 21b3226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/profile.d/prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21b3226

Please sign in to comment.