bring back load avg on macOS

This commit is contained in:
2025-05-30 16:29:06 +02:00
parent 4570331420
commit 0df63ad89a

View File

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