diff options
Diffstat (limited to 'segments/load.sh')
-rwxr-xr-x | segments/load.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/segments/load.sh b/segments/load.sh new file mode 100755 index 0000000..7480d96 --- /dev/null +++ b/segments/load.sh @@ -0,0 +1,6 @@ +# Print the average load. + +run_segment() { + uptime | cut -d "," -f 3- | cut -d ":" -f2 | sed -e "s/^[ \t]*//" + exit 0 +} |