Files
dotfiles/tmux/powerline/segments/tmux_mem_cpu_load.sh
2019-01-12 18:22:02 +01:00

15 lines
267 B
Bash
Executable File

# Print out Memory, cpu and load using https://github.com/thewtex/tmux-mem-cpu-load
run_segment() {
type tmux-mem-cpu-load >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
return
fi
stats=$(tmux-mem-cpu-load)
if [ -n "$stats" ]; then
echo "$stats";
fi
return 0
}