aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to '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