powerlevel-9k: more spacing fixes

This commit is contained in:
Ben Hilburn 2015-01-26 19:55:53 -08:00
parent d86013365f
commit ad10bff2ec

View file

@ -3,7 +3,7 @@
# powerlevel9k Theme # powerlevel9k Theme
# https://github.com/bhilburn/oh-my-zsh/blob/master/themes/powerlevel9k.zsh-theme # https://github.com/bhilburn/oh-my-zsh/blob/master/themes/powerlevel9k.zsh-theme
# #
# This theme is based off of agnoster's Theme: # This theme was inspired by agnoster's Theme:
# https://gist.github.com/3712874 # https://gist.github.com/3712874
# #
# In order for this theme to render correctly, you will need a # In order for this theme to render correctly, you will need a
@ -51,7 +51,7 @@ left_prompt_segment() {
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then
echo -n " %{$bg%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR%{$fg%} " echo -n " %{$bg%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR%{$fg%} "
else else
echo -n "%{$bg%}%{$fg%} " echo -n " %{$bg%}%{$fg%} "
fi fi
CURRENT_BG=$1 CURRENT_BG=$1
[[ -n $3 ]] && echo -n $3 [[ -n $3 ]] && echo -n $3
@ -62,7 +62,7 @@ left_prompt_end() {
if [[ -n $CURRENT_BG ]]; then if [[ -n $CURRENT_BG ]]; then
echo -n " %{%k%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR" echo -n " %{%k%F{$CURRENT_BG}%}$LEFT_SEGMENT_SEPARATOR"
else else
echo -n "%{%k%}" echo -n " %{%k%}"
fi fi
echo -n "%{%f%}" echo -n "%{%f%}"
CURRENT_BG='' CURRENT_BG=''