summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-06-14 22:01:07 -0700
committerRobby Russell <robby@planetargon.com>2015-06-14 22:01:07 -0700
commit3d2bf227ea2b37d351ac3846627f28151e0a4480 (patch)
tree6bf1061744542250f8f381c76d939810b7ab7461 /themes/agnoster.zsh-theme
parenta7784636d8bd2652a4fdfc03afd019d152906ab3 (diff)
parentc6460ef3e73f8f26f300dd8a24a83257b3b8579b (diff)
downloadzsh-3d2bf227ea2b37d351ac3846627f28151e0a4480.tar.gz
zsh-3d2bf227ea2b37d351ac3846627f28151e0a4480.tar.bz2
zsh-3d2bf227ea2b37d351ac3846627f28151e0a4480.zip
Merge pull request #4001 from ivanfoo/fixOddCharsOnMac
Fixed odd chars on mac for agnoster theme
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r--themes/agnoster.zsh-theme8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index b8d0b5872..3a0c58b89 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -26,7 +26,13 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE'
-SEGMENT_SEPARATOR=''
+
+# Fix odd char on mac
+if [[ `uname` == 'Darwin' ]]; then
+ SEGMENT_SEPARATOR='\ue0b0'
+else
+ SEGMENT_SEPARATOR=''
+fi
# Begin a segment
# Takes two arguments, background and foreground. Both can be omitted,