From: Siraaj Khandkar Date: Sun, 1 Nov 2020 21:19:49 +0000 (-0500) Subject: Add tmux client count reporting to motd X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=8a52188cb6a2b42278a4ab10e970facf4b1c33a2 Add tmux client count reporting to motd --- 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