summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2012-07-07 08:51:28 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2012-07-07 08:51:28 +0300
commit40464f39c5c94e20fc3f534663a6b17acf2e227a (patch)
treea5d33027932dd87ffd3552e5d8536f37af2aea33
parent-- trailing white space (diff)
downloadgit-prompt-40464f39c5c94e20fc3f534663a6b17acf2e227a.tar.gz
git-prompt-40464f39c5c94e20fc3f534663a6b17acf2e227a.tar.bz2
git-prompt-40464f39c5c94e20fc3f534663a6b17acf2e227a.zip
better UTF detection
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 271326c..a206eaa 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -151,7 +151,7 @@
fi
#################################################################### MARKERS
- if [[ $LC_CTYPE =~ "UTF" && $TERM != "linux" ]]; then
+ if [[ "$LC_CTYPE $LC_ALL" =~ "UTF" && $TERM != "linux" ]]; then
elipses_marker="…"
else
elipses_marker="..."