From 33dc0396bf5b9f6bfee4a7393efc449015b95623 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 26 Jan 2021 17:03:10 +0530 Subject: [PATCH] Fix: False AC charging message on MacOS Fixes dracula/tmux/issues/91 --- scripts/battery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/battery.sh b/scripts/battery.sh index 4151f92..c0a789c 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -67,7 +67,7 @@ battery_status() ;; Darwin) - status=$(pmset -g batt | sed -n 2p | cut -d ';' -f 2) + status=$(pmset -g batt | sed -n 2p | cut -d ';' -f 2 | tr -d " ") ;; FreeBSD)