Fixing battery prompt formatting issue (cf #5894)

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
This commit is contained in:
Guyzmo 2017-02-19 16:12:37 +01:00
commit 6e3ad79076

View file

@ -100,7 +100,7 @@ elif [[ $(uname) == "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