11 lines
458 B
Bash
11 lines
458 B
Bash
|
# deal with screen, if we're using it - courtesy MacOSXHints.com
|
||
|
# Login greeting ------------------
|
||
|
if [ "$TERM" = "screen" -a ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then
|
||
|
detached_screens=$(screen -list | grep Detached)
|
||
|
if [ ! -z "$detached_screens" ]; then
|
||
|
echo "+---------------------------------------+"
|
||
|
echo "| Detached screens are available: |"
|
||
|
echo "$detached_screens"
|
||
|
echo "+---------------------------------------+"
|
||
|
fi
|
||
|
fi
|