aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/short-uptime.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/short-uptime.bash b/functions/short-uptime.bash
new file mode 100644
index 0000000..62f5c09
--- /dev/null
+++ b/functions/short-uptime.bash
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+uptime | awk '{print $(3)"d "$(5)" "$(NF+0)" "$(NF-1)" "$(NF-0)}'