summaryrefslogtreecommitdiff
path: root/prompt
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-14 16:01:40 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-14 17:01:07 +0300
commitc5b025718698d3edef8f772c25775827cd0f628a (patch)
tree46d97c6745f4a63ef9623471304db91b528ed598 /prompt
parentbranch changes color according to git status (diff)
downloadgit-prompt-c5b025718698d3edef8f772c25775827cd0f628a.tar.gz
git-prompt-c5b025718698d3edef8f772c25775827cd0f628a.tar.bz2
git-prompt-c5b025718698d3edef8f772c25775827cd0f628a.zip
Bold attribute stays until reseted. Put in reset command before all colors.
Diffstat (limited to 'prompt')
-rwxr-xr-xprompt16
1 files changed, 8 insertions, 8 deletions
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`'\]'