mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 04:24:48 +03:00
rc: Use POSIX command -v
instead of which
This commit is contained in:
parent
d5726c0cfd
commit
56837eaece
@ -11,7 +11,7 @@ decl str termcmd %sh{
|
||||
'gnome-terminal -e ' \
|
||||
'xfce4-terminal -e ' ; do
|
||||
terminal=${termcmd%% *}
|
||||
if which $terminal > /dev/null 2>&1; then
|
||||
if command -v $terminal >/dev/null 2>&1; then
|
||||
printf %s\\n "'$termcmd'"
|
||||
exit
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user