From 30f6d6444f7efc0a88f84f3b438e5ca9c3526512 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 28 Aug 2015 18:31:15 +0200 Subject: [PATCH] Redirect std_err to /dev/null for the list of tmux session. --- zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zlogin b/zlogin index eb6822f..007fd45 100644 --- a/zlogin +++ b/zlogin @@ -56,7 +56,7 @@ fi # List tmux sessions if tmux is available if hash tmux; then - TMUX_SESSION=$(tmux ls|grep -- window) + TMUX_SESSION=$(tmux ls 2> /dev/null|grep -- window) # If tmux session available and if not already inside a tmux if [ ${TMUX_SESSION} ] && [ -z "${TMUX}" ]; then printf '%b' "${MAGENTA}++++++++++++++++++++++++ ${WHITEB}Tmux session${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}\n"