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.
Written by Michael Robinson
Related protips
1 Response
Use "rev"! It's so COOOOL!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#