summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Yalon <amir@seekingalpha.com>2010-02-17 11:22:30 +0200
committerAmir Yalon <amir@seekingalpha.com>2010-02-17 21:50:49 +0200
commit00756487eee6b781606a35035be20b2690b4c844 (patch)
tree988b26aaa8bb712e63fe9d892b9e6a54e55d1ef5
parentsimple autojump (diff)
downloadgit-prompt-00756487eee6b781606a35035be20b2690b4c844.tar.gz
git-prompt-00756487eee6b781606a35035be20b2690b4c844.tar.bz2
git-prompt-00756487eee6b781606a35035be20b2690b4c844.zip
Check LC_CTYPE in stead of LC_LANG.
The default in Mac OS X only sets LC_CTYPE to UTF-8, so check that in order to detect whether the terminal supports the Unicode elliepses marker.
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index ccb16bd..8ddbda8 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -139,7 +139,7 @@
#################################################################### MARKERS
screen_marker="sCRn"
- if [[ $LANG =~ "UTF" && $TERM != "linux" ]]; then
+ if [[ $LC_CTYPE =~ "UTF" && $TERM != "linux" ]]; then
elipses_marker="…"
else
elipses_marker="..."