diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-26 00:22:58 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-26 00:22:58 -0400 |
commit | abf3957398b2f97ed64c798fc4411b3b50f3880f (patch) | |
tree | 01a0366361f2b91043cb52d2ce40d96175e42681 /.local/bin/x-terminal-emulator | |
parent | f05b2b29bc7e0273af1e39ef310d5b09f8ea3dbc (diff) |
consolidate the .local/bin/x-* program-picking code into a `pick` command
Diffstat (limited to '.local/bin/x-terminal-emulator')
-rwxr-xr-x | .local/bin/x-terminal-emulator | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.local/bin/x-terminal-emulator b/.local/bin/x-terminal-emulator index f7290b4..049b081 100755 --- a/.local/bin/x-terminal-emulator +++ b/.local/bin/x-terminal-emulator @@ -1,10 +1,4 @@ #!/bin/sh -if [ -x "`which emacsterm`" ]; then - emacsterm $@ -elif [ -x "`which urxvt`" ]; then - urxvt $@ -elif [ -x "`which gnome-terminal`" ]; then - gnome-terminal $@ -elif [ -x "`which xterm`"]; then - xterm $@ -fi + +`pick emacsterm urxvt gnome-terminal xterm` "$@" +exit $? |