dotfiles/.config/shell/zshrc.d/0-screen-information-dialog.zsh

13 lines
472 B
Bash
Raw Normal View History

2019-07-24 05:33:28 +00:00
#!/bin/zsh
# deal with screen, if we're using it - courtesy MacOSXHints.com
# Login greeting ------------------
2019-07-24 05:33:28 +00:00
if [ "$TERM" = "screen" ] && [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then
detached_screens=$(screen -list | grep Detached)
2019-07-24 05:33:28 +00:00
if [ -n "$detached_screens" ]; then
echo "+---------------------------------------+"
echo "| Detached screens are available: |"
echo "$detached_screens"
echo "+---------------------------------------+"
fi
2019-07-24 05:33:28 +00:00
fi