From 4beda4f1c201cb61c998775c40f527e02a9fb833 Mon Sep 17 00:00:00 2001 From: Sean Jones Date: Mon, 3 Dec 2012 12:06:06 +0000 Subject: [PATCH] Changed the error message for linux when no battery is detected. --- plugins/battery/battery.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/battery/battery.plugin.zsh b/plugins/battery/battery.plugin.zsh index 95f890632..2d6c2607a 100644 --- a/plugins/battery/battery.plugin.zsh +++ b/plugins/battery/battery.plugin.zsh @@ -63,7 +63,7 @@ elif [[ $(uname) == "Linux" ]] ; then echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}" } else - error_msg='no battery' + error_msg="∞" function battery_pct_remaining() { echo $error_msg } function battery_time_remaining() { echo $error_msg } function battery_pct_prompt() { echo '' }