diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-14 16:01:40 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-14 17:01:07 +0300 |
commit | c5b025718698d3edef8f772c25775827cd0f628a (patch) | |
tree | 46d97c6745f4a63ef9623471304db91b528ed598 /prompt | |
parent | branch changes color according to git status (diff) | |
download | git-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-x | prompt | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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`'\]' |