# HG changeset patch # User Augie Fackler # Date 1359598306 21600 # Node ID a7f5b0526a51cd8859bc929402fab5bb1f8898e6 # Parent e9932cf1692f52ce57c23f8da140608b0867136b zshrc: second attempt to make screen message not break diff --git a/.zshrc b/.zshrc --- a/.zshrc +++ b/.zshrc @@ -9,7 +9,7 @@ done if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then # Use /bin/which explicitly because we have a shell function # that confuses the zsh built-in which. - if env which screen > /dev/null; then + if sh -c 'which screen' > /dev/null; then detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` if [ ! -z "$detached_screens" ]; then echo "+---------------------------------------+"