Battery printing bug in zsh part (special character not escaped)

This commit is contained in:
Luc Didry 2012-08-12 10:38:52 +02:00
parent c3ba849ced
commit c8f01e68a3

View File

@ -654,7 +654,10 @@ __battery_color()
ret="${ret}${CRIT_RED}" ret="${ret}${CRIT_RED}"
fi fi
if [[ "$WORKING_SHELL" == "bash" ]]; then
echo -ne "${ret}${bat}%${NO_COL}" echo -ne "${ret}${bat}%${NO_COL}"
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
echo -ne "${ret}${bat}%%${NO_COL}"
fi fi
} }