Implement macOS status-right-length increase

This commit is contained in:
Kenneth Benzie 2025-12-04 16:44:50 +00:00
parent c2ff680dd3
commit df7a4d581b

View File

@ -11,7 +11,8 @@ setw -g status-style fg=colour240,bg=colour233
# Right status style shows system info, date, and time.
setw -g status-right "#[fg=colour240]#(cat ~/.cache/tmux/system-info)#[fg=white] %a %d-%m-%y %H:%M "
setw -g status-right-style fg=white,bg=colour233
if -b '[ "`uname`" != "Darwin" ]' \
if -b '[ "`uname`" = "Darwin" ]' \
'run "tmux setw -g status-right-length $((`sysctl -n hw.ncpu` + 48))"' \
'run "tmux setw -g status-right-length $((`nproc --all` + 48))"'
# Active window status style