Skip to content

Instantly share code, notes, and snippets.

@bhenderson
Created May 12, 2011 15:37
Show Gist options
  • Save bhenderson/968772 to your computer and use it in GitHub Desktop.
Save bhenderson/968772 to your computer and use it in GitHub Desktop.
$ [[ $TERM =~ "screen" ]] && echo true
true
$ [[ -t 0 && "*screen*" = $TERM ]] && echo true
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment