aboutsummaryrefslogtreecommitdiff
path: root/tmux-segments/short-uptime
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-02-16 14:52:43 +0100
committerBen Beltran <ben@nsovocal.com>2020-02-16 14:52:43 +0100
commitcef96ea6fe8027669b9f23647439362da04035a3 (patch)
tree9f57d72fd805f2c7f21b4f2dc762347d651b0291 /tmux-segments/short-uptime
parent889954adfb1da6a4c55719b96a7aa571611b6ea9 (diff)
Move short-uptime to tmux segments
Diffstat (limited to 'tmux-segments/short-uptime')
-rwxr-xr-xtmux-segments/short-uptime2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmux-segments/short-uptime b/tmux-segments/short-uptime
new file mode 100755
index 0000000..62f5c09
--- /dev/null
+++ b/tmux-segments/short-uptime
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+uptime | awk '{print $(3)"d "$(5)" "$(NF+0)" "$(NF-1)" "$(NF-0)}'