Add tmux client count reporting to motd
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 1 Nov 2020 21:19:49 +0000 (16:19 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 1 Nov 2020 21:19:49 +0000 (16:19 -0500)
home/lib/login_functions.sh

index 3a9230f..01ada21 100644 (file)
@@ -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
 
This page took 0.022294 seconds and 4 git commands to generate.