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