Tmux Show CPU Usage And Memory Usage

 

EDIT:

~/.tmux.conf

set -g status-interval 2
set -g status-right "#(vmstat -SM 1 2 | awk 'END {print \"cpu:\"100-$15\"%\" \" mem:\"512-$4-$5-$6\"M\"}')#[default] %R"
"512" replace your total memory, e.g. 1024, 2048. get by "free -m". total memory don't often change, so not in command.
posted on 2013-02-20 09:29  eshizhan  阅读(906)  评论(0编辑  收藏  举报