prompt colors

This commit is contained in:
Meutel 2017-05-01 18:44:17 +02:00
parent a8c1d21d6e
commit c823d0e411

10
_bashrc
View File

@ -93,11 +93,9 @@ prompt_status()
{ {
if [[ "$exitStatus" == "0" ]] if [[ "$exitStatus" == "0" ]]
then then
echo -n $GREENB echo -n "${GREENB}\xE2\x9a\x90"
echo -en '\xE2\x9a\x90'
else else
echo -n $REDB echo -n "${REDB}\xE2\x9a\x91"
echo -en '\xE2\x9a\x91'
fi fi
} }
prompt_root() prompt_root()
@ -121,11 +119,11 @@ prompt_remote()
__ps1pre() __ps1pre()
{ {
export exitStatus=$? export exitStatus=$?
echo -n "${WHITEB}(${WHITE}\u@$(prompt_remote)\h${WHITEB}) ${BLUEB}\w${RESET}" echo -en "${YELLOWB}(${WHITE}\u${YELLOWB}@$(prompt_remote)\h${YELLOWB}) ${BLUEB}\w${RESET}"
} }
__ps1post() __ps1post()
{ {
echo -n "\n$(prompt_status) $(prompt_root)${RESET} " echo -en "\n$(prompt_status) $(prompt_root)${RESET} "
} }
__ps1() __ps1()
{ {