better editor choosing
This commit is contained in:
parent
b02b13060b
commit
c78a41eec1
1 changed files with 3 additions and 1 deletions
|
@ -47,9 +47,11 @@ alias p="ping 8.8.8.8"
|
|||
# emacs aliases
|
||||
alias emacs="emacs -nw"
|
||||
|
||||
export EDITOR="vim"
|
||||
if command -v nvim >/dev/null 2>&1; then
|
||||
alias vim="nvim"
|
||||
alias ovim="\vim"
|
||||
alias ovim="\\vim"
|
||||
export EDITOR="nvim"
|
||||
fi
|
||||
|
||||
# prompt
|
||||
|
|
Reference in a new issue