From 8a52188cb6a2b42278a4ab10e970facf4b1c33a2 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sun, 1 Nov 2020 16:19:49 -0500 Subject: [PATCH] Add tmux client count reporting to motd --- home/lib/login_functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 3a9230f..01ada21 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -447,7 +447,9 @@ motd() { echo - printf 'tmux sessions: %d\n' "$(tmux ls 2> /dev/null | wc -l)" + printf 'tmux: sessions %d, clients: %d\n' \ + "$(tmux list-sessions 2> /dev/null | wc -l)" \ + "$(tmux list-clients 2> /dev/null | wc -l)" echo -- 2.20.1