made battery and uptime work under MSYS2 / MINGW
This commit is contained in:
parent
680783c91b
commit
32c14a61c6
1 changed files with 2 additions and 2 deletions
|
@ -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*)
|
||||
|
|
Loading…
Reference in a new issue