commit b9ff745fd24c046dc8e15a91b9c885ec2a76ca3d parent 07a972a4856116db728f63a32df7f2a8253c718c Author: Arun <engineerarun@gmail.com> Date: Tue, 24 Sep 2024 03:49:49 +0530 Merge pull request #1935 from kovmir/fix-terminal-priority Do not default to `xterm` Diffstat:
| M | plugins/preview-tabbed | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed @@ -57,14 +57,14 @@ if [ -n "$WAYLAND_DISPLAY" ] ; then exit 1 fi -if type xterm >/dev/null 2>&1 ; then - TERMINAL="xterm -into" -elif type urxvt >/dev/null 2>&1 ; then - TERMINAL="urxvt -embed" +if type alacritty >/dev/null 2>&1 ; then + TERMINAL="alacritty --embed" elif type st >/dev/null 2>&1 ; then TERMINAL="st -w" -elif type alacritty >/dev/null 2>&1 ; then - TERMINAL="alacritty --embed" +elif type urxvt >/dev/null 2>&1 ; then + TERMINAL="urxvt -embed" +elif type xterm >/dev/null 2>&1 ; then + TERMINAL="xterm -into" else echo "No xembed term found" >&2 fi