updated zshrc to fallback to vi for VISUAL and EDITOR
This commit is contained in:
parent
827272edc8
commit
da64f7d6c0
2 changed files with 5 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
zsh/zhistory
|
zsh/zhistory
|
||||||
|
zsh/.zcompdump
|
||||||
emacs.d/auto-save-list/.saves*
|
emacs.d/auto-save-list/.saves*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,12 @@ if mac; then
|
||||||
}
|
}
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export VISUAL="vim"
|
export VISUAL="vim"
|
||||||
elif linux; then
|
elif linux && which emacs >/dev/null 2>&1; then
|
||||||
export EDITOR="emacs -nw"
|
export EDITOR="emacs -nw"
|
||||||
export VISUAL="emacs"
|
export VISUAL="emacs"
|
||||||
|
else
|
||||||
|
export EDITOR=vi
|
||||||
|
export VISUAL=vi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue