diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-14 01:55:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-14 01:55:25 +1200 |
commit | cd2cc28c883c34fbf47f14995601974ef357d6bd (patch) | |
tree | 175a499d4bb6b2f408381a1425c51a8fd57f5f99 /bash/bashrc.d | |
parent | Move vis function into its own file (diff) | |
download | dotfiles-cd2cc28c883c34fbf47f14995601974ef357d6bd.tar.gz dotfiles-cd2cc28c883c34fbf47f14995601974ef357d6bd.zip |
Use EDITOR in vis function
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/vis.bash | 2 |
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[@]}" |