dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2012-03-01 10:17:37 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2012-03-01 10:17:37 +0000 +0000
Commit: b50a3d2ab9f98898e1152fb8c36c9c7d79e5a98d
Parent: d83186d4971b133a5c8c8dde21caeedd863e7351


Correctly get the uptime in tmux status bar
diff --git a/.tmux.conf b/.tmux.conf
index 972d1f00f2968298615ade8c360030c5ac9e3844..e2e99ac82a0731fa829c5e034dc29dfc2dc91e7d 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -11,7 +11,7 @@ set-window-option -g window-status-current-bg red
 set -g status-bg black
 set -g status-fg white
 set -g status-left "#[fg=green]#H"
-set -g status-right "#[fg=yellow]#(uptime | cut -d ':' -f 3-)"
+set -g status-right "#[fg=yellow]#(uptime | awk -F'load averages:' '{ print $2 }')"
 
 ### Bindings ###