diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-19 20:35:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-19 20:35:26 +1200 |
commit | a3ddf9e5799a4727625c0676d6e32c055640b9c5 (patch) | |
tree | 3e22a57ea4ae600cf9ec39b521b4b7cc7c407a46 /sh/profile.d/visual.sh | |
parent | Merge branch 'master' into port/bsd/freebsd (diff) | |
parent | Just use whichever vi(1) we need as VISUAL (diff) | |
download | dotfiles-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.sh | 8 |
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 |