diff --git a/.tmux.conf b/.tmux.conf index e38fd02..af1e18b 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -191,6 +191,8 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # __newline=' # ' # +# _uname_s=$(uname -s) +# # _is_enabled() { # [ x"$1" = x"true" ] || [ x"$1" = x"yes" ] || [ x"$1" = x"enabled" ] || [ x"$1" = x"1" ] # } @@ -255,8 +257,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # _battery() { # count=0 # charge=0 -# uname_s=$(uname -s) -# case "$uname_s" in +# case "$_uname_s" in # *Darwin*) # while IFS= read -r line; do # if [ x"$discharging" != x"true" ]; then @@ -472,7 +473,11 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # # _tty_info() { # tty="${1##/dev/}" -# uname -s | grep -q "CYGWIN" && cygwin=true +# case "$_uname_s" in +# *CYGWIN*) +# cygwin=true +# ;; +# esac # # if [ x"$cygwin" = x"true" ]; then # ps -af | tail -n +2 | awk -v tty="$tty" ' @@ -592,7 +597,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # } # # _uptime() { -# case $(uname -s) in +# case "$_uname_s" in # *Darwin*) # boot=$(sysctl -q -n kern.boottime | awk -F'[ ,:]+' '{ print $4 }') # now=$(date +%s) @@ -626,7 +631,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # } # # _loadavg() { -# case $(uname -s) in +# case "$_uname_s" in # *Darwin*) # tmux set -g @loadavg "$(sysctl -q -n vm.loadavg | cut -d' ' -f2)" # ;;