From f61af3c942fe80b74285fb596573727fbb366838 Mon Sep 17 00:00:00 2001 From: TKE Date: Mon, 14 Nov 2022 15:22:00 +0100 Subject: [PATCH] Add Color to hostidenticator --- config/bash_prompt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/bash_prompt b/config/bash_prompt index c6cf2f5..72c4e51 100644 --- a/config/bash_prompt +++ b/config/bash_prompt @@ -63,11 +63,11 @@ bash_prompt() { HOST_ICO=" " hosthash=$(hostname | md5sum | cut -c1) - [[ $hosthash == "a" ]] && HOST_ICO=" " - [[ $hosthash == "9" ]] && HOST_ICO=" " - [[ $hosthash == "5" ]] && HOST_ICO="⭘ " + [[ $hosthash == "a" ]] && HOST_ICO="${EMM} " + [[ $hosthash == "9" ]] && HOST_ICO="${EMG} " + [[ $hosthash == "5" ]] && HOST_ICO="${EMB}⭘ " - PS1="${TITLEBAR}${BAR_ON}\${NEW_BAR}${BAR_OFF}\r\n\t\${HOST_ICO}${EMY}\${NEW_PWD}${EMK}]${UC}\n\\$ ${NONE}" + PS1="${TITLEBAR}${BAR_ON}\${NEW_BAR}${BAR_OFF}\r\n\t${HOST_ICO}${EMY}\${NEW_PWD}${EMK}]${UC}\n\\$ ${NONE}" #PS1="${TITLEBAR}${BAR_ON}$(printf '_%.0s' $(seq 1 $(tput cols)))${BAR_OFF}\r\n ${NEW_PWD} :\n\$ " #PS1='\[\033]0;\u - \w\007\]\[\033[44;37m\]'$(printf '_%.0s' $(seq 1 $(tput cols)))'\[\033[1;0m\]\r\n\t \w :\n\$ ' # without colors: PS1="[\u@\h \${NEW_PWD}]\\$ "