fixing load average display in tmux to be compatible with linux and macos

This commit is contained in:
Andrew Davidson 2019-06-14 20:57:21 -04:00
parent f798ef648b
commit 9f92890457
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -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