Changed the error message for linux when no battery is detected.

This commit is contained in:
Sean Jones 2012-12-03 12:06:06 +00:00
commit 4beda4f1c2

View file

@ -63,7 +63,7 @@ elif [[ $(uname) == "Linux" ]] ; then
echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}" echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
} }
else else
error_msg='no battery' error_msg="∞"
function battery_pct_remaining() { echo $error_msg } function battery_pct_remaining() { echo $error_msg }
function battery_time_remaining() { echo $error_msg } function battery_time_remaining() { echo $error_msg }
function battery_pct_prompt() { echo '' } function battery_pct_prompt() { echo '' }