Mercurial > dotfiles
diff .zshrc @ 322:a7f5b0526a51
zshrc: second attempt to make screen message not break
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 30 Jan 2013 20:11:46 -0600 |
parents | 1936d9f48e0b |
children | b78aa03c0c00 |
line wrap: on
line diff
--- 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 "+---------------------------------------+"