diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2014-10-23 23:05:01 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2014-10-23 23:05:01 +0200 |
commit | 90bed2a183c9c6df1f3f3360b2c9e486c4a0ca77 (patch) | |
tree | 5b91fc73d665bbd9b7f7c8e6e16483a8060bc028 /i3-sensible-terminal | |
parent | a66c6b8b6d45ef61f0e879fef2de9b5c1a02f4a5 (diff) | |
download | i3-90bed2a183c9c6df1f3f3360b2c9e486c4a0ca77.tar.gz i3-90bed2a183c9c6df1f3f3360b2c9e486c4a0ca77.zip |
Use command -v (built-in) instead of which(1) (Thanks val)
fixes #1380
Diffstat (limited to 'i3-sensible-terminal')
-rwxr-xr-x | i3-sensible-terminal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i3-sensible-terminal b/i3-sensible-terminal index fddefae1..485fc16d 100755 --- a/i3-sensible-terminal +++ b/i3-sensible-terminal @@ -9,7 +9,7 @@ # distribution-specific mechanism to find the preferred terminal emulator. On # Debian, there is the x-terminal-emulator symlink for example. for terminal in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal; do - if which $terminal > /dev/null 2>&1; then + if command -v $terminal > /dev/null 2>&1; then exec $terminal "$@" fi done |