Ignore tmux error in motd
authorSiraaj Khandkar <siraaj@khandkar.net>
Sat, 31 Oct 2020 00:54:02 +0000 (20:54 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sat, 31 Oct 2020 00:54:02 +0000 (20:54 -0400)
home/lib/login_functions.sh

index 4680be2..fa45b80 100644 (file)
@@ -399,7 +399,7 @@ motd() {
 
     echo
 
-    printf 'tmux sessions: %d\n' "$(tmux ls | wc -l)"
+    printf 'tmux sessions: %d\n' "$(tmux ls 2> /dev/null | wc -l)"
 
     echo
 
This page took 0.023326 seconds and 4 git commands to generate.