Fixing battery prompt formatting issue (cf #5894) (#5895)

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
This commit is contained in:
guyzmo 2017-02-23 08:50:49 +01:00 committed by Robby Russell
parent 98d8d3429f
commit 8611aa8049

View File

@ -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