]> git.zndr.dk Git - dotfiles.git/commitdiff
Fix prompt in fedora
authorJannik Zander <jannikz@gmail.com>
Sun, 29 May 2016 14:37:22 +0000 (16:37 +0200)
committerJannik Zander <jannikz@gmail.com>
Sun, 29 May 2016 14:37:22 +0000 (16:37 +0200)
.config/profile/prompt.sh

index ac2ef30ed8ab3d9b4dded4123fbba231fb05762d..388273d5774432f11a486ec7cb547190e8966d2b 100644 (file)
@@ -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";
 
-