prompt colors
This commit is contained in:
parent
a8c1d21d6e
commit
c823d0e411
10
_bashrc
10
_bashrc
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user