aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.conf b/tmux.conf
index 9a0008b..3e9334b 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -45,6 +45,7 @@ set -g status-left "[#S] "
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-length 40
set -g window-status-format "#I:#W#F"