From: Jannik Zander Date: Sun, 29 May 2016 14:37:22 +0000 (+0200) Subject: Fix prompt in fedora X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=1c8bde863fccfa3b8082f6df1067d9fb59573a02;p=dotfiles.git Fix prompt in fedora --- 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"; -