# HG changeset patch # User Augie Fackler # Date 1367974752 18000 # Node ID 1936d9f48e0bff36a11ef6494c655187370b9c5f # Parent fe07e9bdae61d611161caecc162edcbcb4766372 zshrc: use `env which` since `which` is not always in /bin 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 /bin/which screen > /dev/null; then + if env which screen > /dev/null; then detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` if [ ! -z "$detached_screens" ]; then echo "+---------------------------------------+"