Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check for screen on login (call in .bashrc)
#!/bin/bash
echo
if [ ${TERM^^} = 'SCREEN' ]; then
echo 'Running under screen. CTRL-A ? for help'
else
echo 'Not in a screen; the following are available:'
screen -ls
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.