From d55f678022a77ca70a4af0d2725f12f9588f1d52 Mon Sep 17 00:00:00 2001 From: Bartosz Janda Date: Thu, 9 Oct 2014 22:18:17 +0200 Subject: [PATCH] Fixed battery status on Apple computers without battery, like iMacs. --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 694bce5..90ec508 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1153,7 +1153,7 @@ case "$LP_OS" in local bat="$(cut -f2 <<<"$pmset")" bat="${bat%%%*}" case "$pmset" in - *charged*) + *charged* | "") return 4 ;; *discharging*)