Skip to content

Commit

Permalink
Revert "Replace no unicode glyph on hexa string"
Browse files Browse the repository at this point in the history
This reverts commit baffc3b.
  • Loading branch information
robbyrussell committed Sep 19, 2013
1 parent b57118b commit 61e3951
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/agnoster.zsh-theme
Expand Up @@ -26,7 +26,7 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts

CURRENT_BG='NONE'
SEGMENT_SEPARATOR='\u2b80'
SEGMENT_SEPARATOR=''

# Begin a segment
# Takes two arguments, background and foreground. Both can be omitted,
Expand Down Expand Up @@ -90,7 +90,7 @@ prompt_git() {
zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats '%u%c'
vcs_info
echo -n "${ref/refs\/heads\//\u2b60 }${vcs_info_msg_0_}"
echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_}"
fi
}

Expand All @@ -110,7 +110,7 @@ prompt_hg() {
# if working copy is clean
prompt_segment green black
fi
echo -n $(hg prompt "\u2b60 {rev}@{branch}") $st
echo -n $(hg prompt " {rev}@{branch}") $st
else
st=""
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
Expand All @@ -124,7 +124,7 @@ prompt_hg() {
else
prompt_segment green black
fi
echo -n "\u2b60 $rev@$branch" $st
echo -n " $rev@$branch" $st
fi
fi
}
Expand Down

4 comments on commit 61e3951

@sethvargo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting literal  characters in my terminal after this change :(

@bimawa
Copy link

@bimawa bimawa commented on 61e3951 Oct 23, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AAAAAA pls don't change this strings!!!! revert back on Unicode! AAAA Just use https://gist.github.com/qrush/1595572#file-menlo-powerline-otf

@Stealthii
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular commit has broken the theme for me on every system (patched Menlo on OSX, fontconfig powerline using Meslo on Fedora 19). I can display the characters when I echo them directly, so it is not my font configuration.

@jaseemabid
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this. I'm using menlo-powerline like @bimawa and this commit broke the theme for me.

- SEGMENT_SEPARATOR='<U+E0B0>'
+ SEGMENT_SEPARATOR='<U+2B80>'

Please sign in to comment.