Merge pull request #4001 from ivanfoo/fixOddCharsOnMac
Fixed odd chars on mac for agnoster theme
Diff
1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
2index b8d0b58722302256657e33440137ce1e852b84d2..3a0c58b89bdb01a8d665257662350c9c46c0322b 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
1718 # Begin a segment
19 # Takes two arguments, background and foreground. Both can be omitted,