Mercurial > dotfiles
comparison .zshrc @ 316:1936d9f48e0b
zshrc: use `env which` since `which` is not always in /bin
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 07 May 2013 19:59:12 -0500 |
parents | e37b00236907 |
children | a7f5b0526a51 |
comparison
equal
deleted
inserted
replaced
315:fe07e9bdae61 | 316:1936d9f48e0b |
---|---|
7 # Login greeting ------------------ | 7 # Login greeting ------------------ |
8 | 8 |
9 if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then | 9 if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then |
10 # Use /bin/which explicitly because we have a shell function | 10 # Use /bin/which explicitly because we have a shell function |
11 # that confuses the zsh built-in which. | 11 # that confuses the zsh built-in which. |
12 if /bin/which screen > /dev/null; then | 12 if env which screen > /dev/null; then |
13 detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` | 13 detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` |
14 if [ ! -z "$detached_screens" ]; then | 14 if [ ! -z "$detached_screens" ]; then |
15 echo "+---------------------------------------+" | 15 echo "+---------------------------------------+" |
16 echo "| Detached screens are available: |" | 16 echo "| Detached screens are available: |" |
17 echo "$detached_screens" | 17 echo "$detached_screens" |