summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-27 08:31:34 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-27 08:31:34 +0300
commitf376f95b775f850d37a38a70fa2ab116b75069d8 (patch)
tree1583fe3586f041d47cb5ebe8d5c67dc17052d11c
parentchanged vim file color to magenta (diff)
downloadgit-prompt-f376f95b775f850d37a38a70fa2ab116b75069d8.tar.gz
git-prompt-f376f95b775f850d37a38a70fa2ab116b75069d8.tar.bz2
git-prompt-f376f95b775f850d37a38a70fa2ab116b75069d8.zip
reverting dim hex color for non linux OS-es
Under OSX iTerm2 and Terminal do not support dim or BLACK colors. My guess that other OS-es do not support it also.
-rwxr-xr-xgit-prompt.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index f2ce55f..efa26c3 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -53,7 +53,13 @@
untracked_vcs_color=${untracked_vcs_color:-BLUE} # Untracked files:
op_vcs_color=${op_vcs_color:-MAGENTA}
detached_vcs_color=${detached_vcs_color:-RED}
+
+ if [[ $OSTYPE == "linux-gnu" ]] ; then # no linux OSs do not support extra colors
hex_vcs_color=${hex_vcs_color:-dim}
+ else
+ hex_vcs_color=${hex_vcs_color:-colors_reset}
+ fi
+
max_file_list_length=${max_file_list_length:-100}
upcase_hostname=${upcase_hostname:-on}