Skip to content

Commit

Permalink
Fixing battery prompt formatting issue (cf ohmyzsh#5894) (ohmyzsh#5895)
Browse files Browse the repository at this point in the history
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
  • Loading branch information
guyzmo authored and chihchun committed Aug 6, 2019
1 parent 424ccdd commit d4c41c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/battery/battery.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ elif [[ "$OSTYPE" = linux* ]] ; then
else
color='red'
fi
echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
echo "%{$fg[$color]%}$(battery_pct_remaining)%%%{$reset_color%}"
else
echo ""
fi
Expand Down

0 comments on commit d4c41c2

Please sign in to comment.