File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# Print out Memory, cpu and load using https://github.com/thewtex/tmux-mem-cpu-load
22
3+ generate_segmentrc () {
4+ read -d ' ' rccontents << EORC
5+ # Arguments passed to tmux-mem-cpu-load
6+ export TMUX_POWERLINE_SEG_TMUX_MEM_CPU_LOAD_ARGS="-v" # The data provider to use. Currently only "yahoo" is supported.
7+ EORC
8+ echo " $rccontents "
9+ }
10+
311run_segment () {
412 stats=" "
513 if type $TMUX_PLUGIN_MANAGER_PATH /tmux-mem-cpu-load/tmux-mem-cpu-load > /dev/null 2>&1 ; then
6- stats=$( $TMUX_PLUGIN_MANAGER_PATH /tmux-mem-cpu-load/tmux-mem-cpu-load)
14+ stats=$( $TMUX_PLUGIN_MANAGER_PATH /tmux-mem-cpu-load/tmux-mem-cpu-load $TMUX_POWERLINE_SEG_TMUX_MEM_CPU_LOAD_ARGS )
715 elif type tmux-mem-cpu-load > /dev/null 2>&1 ; then
816 stats=$( tmux-mem-cpu-load)
917 else
You can’t perform that action at this time.
0 commit comments