From 9c167d5e9117744a4e9fdf255954ebe241aeb845 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 18 Jan 2018 20:08:23 -0500 Subject: Hopefully a final version for *BSD? --- tmux.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index 3e9334b..8ff225d 100644 --- a/tmux.conf +++ b/tmux.conf @@ -44,8 +44,7 @@ set -g status-left "[#S] " # Who knew I'd be embedding such a horrible abomination into a tmux configuration file? set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime -p | awk 'BEGIN {OFS=\",\";} {print $1, $2, $3}' | sed -re's/^up,([0-9]+),([hmrsdwy]).*$/up:\\1\\2/g' ) " # If you're on a BSD system copy this line into your ~/.tmux.conf.local -# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime | sed -re's/^.*up ([0-9]+) ([hmrsdwy]).*$/\\1\\2/g' ) " -# uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\1/g' -e's/^([^ ]+)[ ]*(.).*/\1\2/g' +# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\\1/g' -e's/^([^ ]+)[ ]*(.).*/\\1\\2/g' )" set -g status-right-length 40 set -g window-status-format "#I:#W#F" -- cgit v1.2.3