pt9cua
Last Updated: February 25, 2016
·
3.022K
· faceleg
98aba6d508f3f1e7fd6b21e8bfdb6b6c

Show load averages in tmux status bar

The below snippet demonstrates how one might display a system's uptime in the tmux status bar:

set-option -g status-right '#[fg=white,nobright][ #[fg=black,bright]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g )#[fg=white,nobright] ]'

Add to ~/.tmux.conf

Works in linux (tested in Ubuntu) and OS X.

Say Thanks
Respond

1 Response
Add your response

13928
884be098693425b409d25aaec5091de8

Use "rev"! It's so COOOOL!

over 1 year ago ·
Filed Under