]> git.sur5r.net Git - i3/i3/blobdiff - i3-sensible-terminal
Use command -v (built-in) instead of which(1) (Thanks val)
[i3/i3] / i3-sensible-terminal
index fddefae10048f0f546e4b0404e32caeae0c7d1f4..485fc16dce4869633f87044be07531e2ec07c505 100755 (executable)
@@ -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