made #{uptime_xxx} work under FreeBSD

This commit is contained in:
Joachim Werner 2020-09-13 14:17:09 +02:00 committed by Gregory Pakosz
parent b4a5d06740
commit 39cc430268
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# #
# _uptime() { # _uptime() {
# case "$_uname_s" in # case "$_uname_s" in
# *Darwin*) # *Darwin*|*FreeBSD*)
# 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)
# ;; # ;;