From 9f9289045792e47def4246dd1d1dcacb9abb449c Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Fri, 14 Jun 2019 20:57:21 -0400 Subject: [PATCH] fixing load average display in tmux to be compatible with linux and macos --- tmux/.tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index d7de143..c9afe3b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -16,7 +16,7 @@ set-window-option -g window-status-current-fg colour141 # Add some info to the status bar set -g status-right-length 70 -set -g status-right "#H | up #(uptime | awk '{print $3 \" \" $4}' | sed 's/,//') | Mem: #(~/bin/tmux-free-memory.sh) free | Load: #(uptime | awk '{print $10, $11, $12}')" +set -g status-right "#H | up #(uptime | awk '{print $3 \" \" $4}' | sed 's/,//') | Mem: #(~/bin/tmux-free-memory.sh) free | Load: #(uptime | rev | cut -f1-3 -d ' ' | rev)" # Auto-set window title setw -g automatic-rename