tvim improve scripting

This commit is contained in:
Von Random 2018-06-19 17:21:27 +03:00
parent b794ce3b0b
commit 676f0bce31

3
tvim
View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
term=default-terminal-emulator
vim=vim
#[[ -x $(type -P nvim) ]] && vim=nvim
vim=$(command -v nvim) || vim=$(command -v vim)
exec $term -e $vim -c 'set mouse=a' "$@" &>/dev/null & disown