From c5b025718698d3edef8f772c25775827cd0f628a Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 14 Jun 2008 16:01:40 +0300 Subject: Bold attribute stays until reseted. Put in reset command before all colors. --- prompt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'prompt') diff --git a/prompt b/prompt index 39880a5..8fb1ef9 100755 --- a/prompt +++ b/prompt @@ -124,14 +124,14 @@ export -f set_shell_title ### if term support colors, then use color prompt, else bold - black='\['`tput setaf 0`'\]' - red='\['`tput setaf 1`'\]' - green='\['`tput setaf 2`'\]' - yellow='\['`tput setaf 3`'\]' - blue='\['`tput setaf 4`'\]' - magenta='\['`tput setaf 5`'\]' - cyan='\['`tput setaf 6`'\]' - white='\['`tput setaf 7`'\]' + black='\['`tput sgr0; tput setaf 0`'\]' + red='\['`tput sgr0; tput setaf 1`'\]' + green='\['`tput sgr0; tput setaf 2`'\]' + yellow='\['`tput sgr0; tput setaf 3`'\]' + blue='\['`tput sgr0; tput setaf 4`'\]' + magenta='\['`tput sgr0; tput setaf 5`'\]' + cyan='\['`tput sgr0; tput setaf 6`'\]' + white='\['`tput sgr0; tput setaf 7`'\]' BLACK='\['`tput setaf 0; tput bold`'\]' RED='\['`tput setaf 1; tput bold`'\]' -- cgit v1.2.3