aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/visual.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-19 20:35:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-19 20:35:26 +1200
commita3ddf9e5799a4727625c0676d6e32c055640b9c5 (patch)
tree3e22a57ea4ae600cf9ec39b521b4b7cc7c407a46 /sh/profile.d/visual.sh
parentMerge branch 'master' into port/bsd/freebsd (diff)
parentJust use whichever vi(1) we need as VISUAL (diff)
downloaddotfiles-a3ddf9e5799a4727625c0676d6e32c055640b9c5.tar.gz
dotfiles-a3ddf9e5799a4727625c0676d6e32c055640b9c5.zip
Merge branch 'master' into port/bsd/freebsd
Diffstat (limited to 'sh/profile.d/visual.sh')
-rw-r--r--sh/profile.d/visual.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/sh/profile.d/visual.sh b/sh/profile.d/visual.sh
index d03da255..38ab9893 100644
--- a/sh/profile.d/visual.sh
+++ b/sh/profile.d/visual.sh
@@ -1,7 +1,3 @@
-# Set visual editor; vim if we've got it, but vi will do fine
-if command -v vim >/dev/null 2>&1 ; then
- VISUAL=vim
-else
- VISUAL=vi
-fi
+# Use first found implementation of vi(1)
+VISUAL=vi
export VISUAL