actually, fallback only to xterm

This commit is contained in:
Von Random 2018-07-17 18:46:59 +03:00
parent 17b05cd777
commit 761780524c

2
tvim
View file

@ -9,7 +9,7 @@ error() {
exit 1 exit 1
} }
termbin=$(command -v default-terminal-emulator) || termbin=$(command -v st) || termbin=$(command -v xterm) || error "No terminal found!" termbin=$(command -v default-terminal-emulator) || termbin=$(command -v xterm) || error "No terminal found!"
vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!" vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!"
exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown