From: Ben Beltran Date: Sun, 22 Dec 2019 23:43:22 +0000 (+0100) Subject: Add uptime function for tmux X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/4f36c99380b27826970be983c0ce7c54f95b7b8b?ds=inline;hp=a9d35322bf518e716392bfc20a71800b9109ec52 Add uptime function for tmux --- 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)}'