Add tmux session count to motd
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 30 Oct 2020 21:11:49 +0000 (17:11 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 30 Oct 2020 21:11:49 +0000 (17:11 -0400)
home/lib/login_functions.sh

index 4fc413f..4680be2 100644 (file)
@@ -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}' \
This page took 0.024654 seconds and 4 git commands to generate.