added _uname_s global variable
This commit is contained in:
parent
71d5e1caa1
commit
cba2a6c1ec
1 changed files with 10 additions and 5 deletions
15
.tmux.conf
15
.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)"
|
||||
# ;;
|
||||
|
|
Loading…
Reference in a new issue