Mercurial > dotfiles
diff .zshrc @ 307:e37b00236907
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.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 19 Jan 2013 19:29:58 -0600 |
parents | c7e8311eb2ba |
children | 1936d9f48e0b |
line wrap: on
line diff
--- 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 "+---------------------------------------+"