Created
May 20, 2015 12:46
-
-
Save parsingphase/49dd0bcd97f124c21b98 to your computer and use it in GitHub Desktop.
Check for screen on login (call in .bashrc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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