pt9cua
Last Updated: February 25, 2016
·
3.515K
· faceleg

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.

1 Response
Add your response

13928

Use "rev"! It's so COOOOL!

over 1 year ago ·