From 529bfbe7c3c6b4ded3b8e5f33f4b7b5a4dbc7fe0 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 30 Oct 2020 17:11:49 -0400 Subject: [PATCH] Add tmux session count to motd --- home/lib/login_functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 4fc413f..4680be2 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -399,6 +399,10 @@ motd() { echo + printf 'tmux sessions: %d\n' "$(tmux ls | wc -l)" + + echo + printf 'mem ' free \ | awk '$1 == "Mem:" {total=$2; used=$3; print used, total}' \ -- 2.20.1