From 0df63ad89a5edf97b8f46a5a27db3f6fe7b2f0d1 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 30 May 2025 16:29:06 +0200 Subject: [PATCH] bring back load avg on macOS --- tmux/.tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f0e6256..2b78212 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -12,7 +12,10 @@ set -g mouse on set -g renumber-windows on set -g set-titles on set -g status-interval 10 -set -g status-right "#(whoami)@#(hostname) | #(cut -f1 -d \" \" < /proc/loadavg) | %H:%M " +if-shell -b '[ "$(uname)" = "Darwin" ]' \ + 'set -g status-right "#(whoami)@#(hostname) | #(sysctl -n vm.loadavg | cut -f2 -d \" \") | %H:%M "' +if-shell -b '[ "$(uname)" = "Linux" ]' \ + 'set -g status-right "#(whoami)@#(hostname) | #(cut -f1 -d \" \" < /proc/loadavg) | %H:%M "' set -g pane-active-border-style fg=cyan set -g status-style fg=black,bg=cyan set -ga terminal-overrides ",xterm-256color:Tc"