updated zshrc to fallback to vi for VISUAL and EDITOR

This commit is contained in:
Sami Samhuri 2010-08-12 14:09:49 -07:00
parent 827272edc8
commit da64f7d6c0
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
zsh/zhistory
zsh/.zcompdump
emacs.d/auto-save-list/.saves*
.DS_Store

View file

@ -45,9 +45,12 @@ if mac; then
}
export EDITOR="vim"
export VISUAL="vim"
elif linux; then
elif linux && which emacs >/dev/null 2>&1; then
export EDITOR="emacs -nw"
export VISUAL="emacs"
else
export EDITOR=vi
export VISUAL=vi
fi