summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2018-06-19 17:21:27 +0300
committerVon Random <von@vdrandom.org>2018-06-19 17:21:27 +0300
commit676f0bce317e8914d58581cb7626780c0c9d99ff (patch)
tree4b021c5371d0f5747527a017d9b7514cbe470e82
parentb794ce3b0b16559e461a6fa0a929880534b5ac85 (diff)
tvim improve scripting
-rwxr-xr-xtvim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tvim b/tvim
index e81103b..918fa24 100755
--- a/tvim
+++ b/tvim
@@ -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