From: Siraaj Khandkar Date: Fri, 30 Oct 2020 21:11:49 +0000 (-0400) Subject: Add tmux session count to motd X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=529bfbe7c3c6b4ded3b8e5f33f4b7b5a4dbc7fe0 Add tmux session count to motd --- 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}' \