[zsh] Tweak IO redirection in init_rc_vi
This commit is contained in:
parent
97c1b8ad30
commit
b2a1d2fc83
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# Eryn Wells <eryn@erynwells.me>
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
if whence -cp nvim &>-; then
|
# Prefer nvim and vim, in that order, over standard vi, which is insufferable.
|
||||||
|
|
||||||
|
if whence -cp nvim &> -; then
|
||||||
alias vi=nvim
|
alias vi=nvim
|
||||||
elif whence -cp vim &>-; then
|
elif whence -cp vim &> -; then
|
||||||
alias vi=vim
|
alias vi=vim
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue