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"