diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-11-13 11:16:28 +0200 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-11-13 11:16:28 +0200 |
commit | 06e644d2d80278c795e4e3127665ec868dc005bc (patch) | |
tree | 57178bd4999f1d1b49d750402b1185e0094f4662 /git-prompt.sh | |
parent | fixed: git modifed files were not visible (diff) | |
download | git-prompt-06e644d2d80278c795e4e3127665ec868dc005bc.tar.gz git-prompt-06e644d2d80278c795e4e3127665ec868dc005bc.tar.bz2 git-prompt-06e644d2d80278c795e4e3127665ec868dc005bc.zip |
-- fixed minor: case when there is no tput, or it doesn't return anything
Diffstat (limited to 'git-prompt.sh')
-rw-r--r-- | git-prompt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index 806e9e7..cac80f8 100644 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -4,7 +4,7 @@ default_domain="lvvnet" # default domain is not deplayed, remote host is alwais shown # dir, rc, root color - if [ "`tput colors`" -ge 8 ]; then # if terminal supports colors + if [ 0`tput colors` -ge 8 ]; then # if terminal supports colors dir_color='CYAN' rc_color='red' root_id_color='magenta' |