aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-04-14 01:55:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-04-14 01:55:25 +1200
commitcd2cc28c883c34fbf47f14995601974ef357d6bd (patch)
tree175a499d4bb6b2f408381a1425c51a8fd57f5f99 /bash/bashrc.d
parentMove vis function into its own file (diff)
downloaddotfiles-cd2cc28c883c34fbf47f14995601974ef357d6bd.tar.gz
dotfiles-cd2cc28c883c34fbf47f14995601974ef357d6bd.zip
Use EDITOR in vis function
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/vis.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vis.bash b/bash/bashrc.d/vis.bash
index bf1129a1..ffcfe02a 100644
--- a/bash/bashrc.d/vis.bash
+++ b/bash/bashrc.d/vis.bash
@@ -28,7 +28,7 @@ vis() {
done
# Run editor with all the options and full path file arguments
- command vim "${opts[@]}" -- "${files[@]}"
+ command "${VISUAL:-${EDITOR:-vi}}" "${opts[@]}" -- "${files[@]}"
# Attempt to make the new files executable by us
chmod -f -- u+x "${files[@]}"