From 7a8febbb9e56138fad25f7a8a3303fe4503549d2 Mon Sep 17 00:00:00 2001 From: Peter Liljenberg Date: Thu, 23 Jan 2014 10:16:57 +0100 Subject: [PATCH] Fixed coloring that breaks my bash linebreaks and stuff --- prompt.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/prompt.sh b/prompt.sh index 688b5ef..748b04a 100644 --- a/prompt.sh +++ b/prompt.sh @@ -30,17 +30,17 @@ if [ -n "${BASH_VERSION}" ]; then : ${use_color_off:=false} # Colors - : ${on='\033[0;37m'} - : ${off='\033[1;30m'} - : ${red='\033[0;31m'} - : ${green='\033[0;32m'} - : ${yellow='\033[0;33m'} - : ${violet='\033[0;35m'} - : ${branch_color='\033[0;34m'} - : ${reset='\033[0m'} - + : ${on='\[\033[1;37m\]'} + : ${off='\[\033[0m\]'} + : ${red='\[\033[0;31m\]'} + : ${green='\[\033[0;32m\]'} + : ${yellow='\[\033[1;33m\]'} + : ${violet='\[\033[0;35m\]'} + : ${branch_color='\[\033[1;34m\]'} + : ${reset='\[\033[0m\]'} + PS2="${yellow}→${reset} " - + source ${DIR}/base.sh function bash_prompt() { PS1="$(build_prompt)"