mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1935 from kovmir/fix-terminal-priority
Do not default to `xterm`
This commit is contained in:
commit
b9ff745fd2
|
@ -57,14 +57,14 @@ if [ -n "$WAYLAND_DISPLAY" ] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type xterm >/dev/null 2>&1 ; then
|
if type alacritty >/dev/null 2>&1 ; then
|
||||||
TERMINAL="xterm -into"
|
TERMINAL="alacritty --embed"
|
||||||
elif type urxvt >/dev/null 2>&1 ; then
|
|
||||||
TERMINAL="urxvt -embed"
|
|
||||||
elif type st >/dev/null 2>&1 ; then
|
elif type st >/dev/null 2>&1 ; then
|
||||||
TERMINAL="st -w"
|
TERMINAL="st -w"
|
||||||
elif type alacritty >/dev/null 2>&1 ; then
|
elif type urxvt >/dev/null 2>&1 ; then
|
||||||
TERMINAL="alacritty --embed"
|
TERMINAL="urxvt -embed"
|
||||||
|
elif type xterm >/dev/null 2>&1 ; then
|
||||||
|
TERMINAL="xterm -into"
|
||||||
else
|
else
|
||||||
echo "No xembed term found" >&2
|
echo "No xembed term found" >&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue