# HG changeset patch # User Augie Fackler # Date 1336086386 18000 # Node ID c7e8311eb2ba43db7bd56ad8f7d72b1a03e6d2f9 # Parent d77b2e253e99e5199d548845153b73dbbb7e4960 zshrc: suppress stderr from tmux tmux prints some stderr of 'tmux ls' would show nothing. diff --git a/.zshrc b/.zshrc --- a/.zshrc +++ b/.zshrc @@ -21,7 +21,7 @@ fi if [ ! "$SHOWED_TMUX_MESSAGE" = "true" ]; then if which tmux > /dev/null; then - detached_screens=$(tmux ls | grep -v attached) + detached_screens=$(tmux ls 2> /dev/null | grep -v attached) if [ ! -z "$detached_screens" ]; then echo "+-----------------------------------------------------------+" echo "| Detached tmux sessions are available: |"