From 348e2621d5266a2712141086a5dea7a5a01e4789 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 30 Oct 2020 20:54:02 -0400 Subject: [PATCH] Ignore tmux error in motd --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 4680be2..fa45b80 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -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 -- 2.20.1