11 lines
458 B
Text
11 lines
458 B
Text
|
# 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
|