[zsh] Update shell init: rc
This commit is contained in:
parent
b09d523218
commit
c30b46a88b
26 changed files with 479 additions and 462 deletions
15
zsh/func/vi
Normal file
15
zsh/func/vi
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
function vi
|
||||
{
|
||||
if whence -cp nvim 1>/dev/null 2>&1; then
|
||||
command nvim $@
|
||||
elif whence -cp vim 1>/dev/null 2>&1; then
|
||||
command vim $@
|
||||
elif whence -cp vi 1>/dev/null 2>&1; then
|
||||
command vi $@
|
||||
fi
|
||||
}
|
||||
|
||||
vi "$@"
|
Loading…
Add table
Add a link
Reference in a new issue