From 32c14a61c6d076fd0342884a8cc0725154112c38 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sat, 3 Jun 2017 21:50:55 +0200 Subject: [PATCH] made battery and uptime work under MSYS2 / MINGW --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index a285651..12d3fdd 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -281,7 +281,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # $(find /sys/class/power_supply -maxdepth 1 -iname '*bat*') # EOF # ;; -# *CYGWIN*) +# *CYGWIN*|*MSYS*|*MINGW*) # while IFS= read -r line; do # [ -z "$line" ] && continue # if [ x"$discharging" != x"true" ]; then @@ -548,7 +548,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # boot=$(sysctl -q -n kern.boottime | awk -F'[ ,:]+' '{ print $4 }') # now=$(date +%s) # ;; -# *Linux*|*CYGWIN*) +# *Linux*|*CYGWIN*|*MSYS*|*MINGW*) # now=$(cut -d' ' -f1 < /proc/uptime) # ;; # *OpenBSD*)