Skip to content

Instantly share code, notes, and snippets.

@5225225
Created August 31, 2014 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5225225/84dfa85a90910b1f00a6 to your computer and use it in GitHub Desktop.
Save 5225225/84dfa85a90910b1f00a6 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
#
# This script tries to exec a terminal emulator by trying some known terminal
# emulators.
for terminal in $TERMINAL x-terminal-emulator urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal; do
if which $terminal > /dev/null 2>&1; then
exec $terminal "$@"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment