initial
This commit is contained in:
14
tmux/powerline/segments/tmux_mem_cpu_load.sh
Executable file
14
tmux/powerline/segments/tmux_mem_cpu_load.sh
Executable file
@ -0,0 +1,14 @@
|
||||
# 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
|
||||
}
|
Reference in New Issue
Block a user