# HG changeset patch # User Augie Fackler # Date 1358645398 21600 # Node ID e37b002369072292371eb651c2bf665d43d03d03 # Parent ae22ef7859eb0d2b8ba0edbacfae0e61a0e7bb51 zshrc: work around my shell function that turns on utf8 in screen The zsh built in which was getting confused by the function, and always claimed screen was installed. I'm finally running into machines with tmux but not screen, so I noticed. diff --git a/.zshrc b/.zshrc --- a/.zshrc +++ b/.zshrc @@ -7,7 +7,9 @@ done # Login greeting ------------------ if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then - if which screen > /dev/null; then + # Use /bin/which explicitly because we have a shell function + # that confuses the zsh built-in which. + if /bin/which screen > /dev/null; then detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` if [ ! -z "$detached_screens" ]; then echo "+---------------------------------------+"