Mercurial > dotfiles
changeset 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 | e9932cf1692f |
children | aa5afa13e12c |
files | .zshrc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 "+---------------------------------------+"