From 1c8bde863fccfa3b8082f6df1067d9fb59573a02 Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Sun, 29 May 2016 16:37:22 +0200 Subject: [PATCH] Fix prompt in fedora --- .config/profile/prompt.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.config/profile/prompt.sh b/.config/profile/prompt.sh index ac2ef30..388273d 100644 --- a/.config/profile/prompt.sh +++ b/.config/profile/prompt.sh @@ -57,22 +57,22 @@ set_prompts() yellow="\e[1;33m" fi - fg="$black" + fg="$white" # build the prompt # logged in as root if [[ "$USER" == "root" ]]; then - userStyle="\[$bold$red\]" + userStyle="$bold$red" else - userStyle="\[$orange\]" + userStyle="$orange" fi # connected via ssh if [[ "$SSH_TTY" ]]; then - hostStyle="\[$bold$red\]" + hostStyle="$bold$red" else - hostStyle="\[$yellow\]" + hostStyle="$yellow" fi # Set the terminal title to the current working directory. @@ -100,8 +100,7 @@ set_prompts() PS2="→ " fi - export PS1 - export PS2 + export PS1 PS2 } @@ -111,4 +110,3 @@ unset set_prompts # Whenever displaying the prompt, write the previous line to disk export PROMPT_COMMAND="history -a"; - -- 2.43.0