scripts/misc/findterm

10 lines
199 B
Plaintext
Raw Normal View History

2020-04-02 08:38:36 +00:00
#!/bin/zsh
for candidate in x-terminal-emulator xdg-terminal alacritty urxvt xterm; do
if which $candidate &> /dev/null; then
echo $candidate
exit 0
fi
done
echo "no terminal found" >&2
exit 1