Skip to content

Instantly share code, notes, and snippets.

@parsingphase
Created May 20, 2015 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsingphase/49dd0bcd97f124c21b98 to your computer and use it in GitHub Desktop.
Save parsingphase/49dd0bcd97f124c21b98 to your computer and use it in GitHub Desktop.
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