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" ]]
then
echo -n $GREENB
echo -en '\xE2\x9a\x90'
echo -n "${GREENB}\xE2\x9a\x90"
else
echo -n $REDB
echo -en '\xE2\x9a\x91'
echo -n "${REDB}\xE2\x9a\x91"
fi
}
prompt_root()
@ -121,11 +119,11 @@ prompt_remote()
__ps1pre()
{
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()
{
echo -n "\n$(prompt_status) $(prompt_root)${RESET} "
echo -en "\n$(prompt_status) $(prompt_root)${RESET} "
}
__ps1()
{