diff options
author | Cody Hiar <chiar@hybridforge.com> | 2015-08-12 12:06:23 -0600 |
---|---|---|
committer | Cody Hiar <chiar@hybridforge.com> | 2015-08-12 12:06:23 -0600 |
commit | 07fc2644a237187dd4c5680e88f4adadbf533603 (patch) | |
tree | bb6335e180df48c5a6f0b893312857d36ad470f7 /segments/rainbarf.sh |
Initial commit of the working files
Diffstat (limited to 'segments/rainbarf.sh')
-rwxr-xr-x | segments/rainbarf.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/segments/rainbarf.sh b/segments/rainbarf.sh new file mode 100755 index 0000000..a9c6c1f --- /dev/null +++ b/segments/rainbarf.sh @@ -0,0 +1,15 @@ +# Print out Memory and CPU using https://github.com/creaktive/rainbarf + +run_segment() { + type rainbarf >/dev/null 2>&1 + if [ "$?" -ne 0 ]; then + return + fi + + # Customize via ~/.rainbarf.conf + stats=$(rainbarf --tmux) + if [ -n "$stats" ]; then + echo "$stats"; + fi + return 0 +} |