From: Siraaj Khandkar Date: Sat, 31 Oct 2020 00:54:02 +0000 (-0400) Subject: Ignore tmux error in motd X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=348e2621d5266a2712141086a5dea7a5a01e4789 Ignore tmux error in motd --- 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