[zsh] Give all the init-env functions consistent names
This commit is contained in:
parent
e5505a7a69
commit
f2144fcbed
8 changed files with 28 additions and 52 deletions
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
function init-vi
|
||||
{
|
||||
# Prefer nvim and vim, in that order, over standard vi, which is insufferable.
|
||||
if whence -cp nvim &> /dev/null; then
|
||||
alias vi=nvim
|
||||
export EDITOR=nvim
|
||||
elif whence -cp vim &> /dev/null; then
|
||||
alias vi=vim
|
||||
export EDITOR=vim
|
||||
else
|
||||
export EDITOR=vi
|
||||
fi
|
||||
}
|
||||
|
||||
init-vi "$@"
|
Loading…
Add table
Add a link
Reference in a new issue