c6460ef3e73f8f26f300dd8a24a83257b3b8579b

Author
ivanfoo <sanfru.ivan@gmail.com>
Committer
ivanfoo <sanfru.ivan@gmail.com>
Date

Message

Fixed odd chars on mac for agnoster theme

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index 8c7be6e0123e95f7c737966e3f975d8a67102808..9f67543f5927c58a381e0c6ba8e3872de5623498 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -26,7 +26,13 @@
 6 # A few utility functions to make it easy and re-usable to draw segmented prompts
 7 
 8 CURRENT_BG='NONE'
 9-SEGMENT_SEPARATOR=''
10+
11+# Fix odd char on mac
12+if [[ `uname` == 'Darwin' ]]; then
13+    SEGMENT_SEPARATOR='\ue0b0'
14+else
15+    SEGMENT_SEPARATOR=''
16+fi
17 
18 # Begin a segment
19 # Takes two arguments, background and foreground. Both can be omitted,