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"