default-terminal-emulator for tvim

This commit is contained in:
Von Random 2018-07-17 18:45:59 +03:00
parent 90c59f9b21
commit 17b05cd777

2
tvim
View file

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