diff options
author | Amir Yalon <amir@seekingalpha.com> | 2010-02-17 11:22:30 +0200 |
---|---|---|
committer | Amir Yalon <amir@seekingalpha.com> | 2010-02-17 21:50:49 +0200 |
commit | 00756487eee6b781606a35035be20b2690b4c844 (patch) | |
tree | 988b26aaa8bb712e63fe9d892b9e6a54e55d1ef5 | |
parent | simple autojump (diff) | |
download | git-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-x | git-prompt.sh | 2 |
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="..." |