From 00756487eee6b781606a35035be20b2690b4c844 Mon Sep 17 00:00:00 2001 From: Amir Yalon Date: Wed, 17 Feb 2010 11:22:30 +0200 Subject: 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. --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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="..." -- cgit v1.2.3