1
0
Fork 0
mirror of synced 2024-12-12 18:35:47 -05:00

added _uname_s global variable

This commit is contained in:
Gregory Pakosz 2019-07-28 13:06:15 +02:00
parent 71d5e1caa1
commit cba2a6c1ec

View file

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