Skip to content

Instantly share code, notes, and snippets.

@philips
Created October 9, 2010 05:40
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 philips/617928 to your computer and use it in GitHub Desktop.
Save philips/617928 to your computer and use it in GitHub Desktop.
philips:~/ $ if [[ $TERM =~ "^foobar123" || $TERM == "rxvt" ]]; then echo $TERM; fi
xterm
philips:~/ $ if [[ $TERM =~ "^foobar123" ]] || [[ $TERM == "rxvt" ]]; then echo $TERM; fi
philips:~/ $ if [[ $TERM =~ "^xterm" ]] || [[ $TERM == "rxvt" ]]; then echo $TERM; fi
xterm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment