From c823d0e4110eb5ea1d46d9f247aa6c4eb9072b98 Mon Sep 17 00:00:00 2001 From: Meutel Date: Mon, 1 May 2017 18:44:17 +0200 Subject: [PATCH] prompt colors --- _bashrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/_bashrc b/_bashrc index b30ec62..677e882 100644 --- a/_bashrc +++ b/_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() {