Created
August 31, 2014 10:23
-
-
Save 5225225/84dfa85a90910b1f00a6 to your computer and use it in GitHub Desktop.
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/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