diff --git a/zsh/zshrc b/zsh/zshrc index 04d7242..2aff3e7 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -53,29 +53,12 @@ if [[ -d /usr/local/lib/python ]]; then export PYTHONPATH="/usr/local/lib/python" fi -# default editors -if mac; then - # wtf, you must be kidding, doesn't even work in many cases. really fucking lame! - function emacsclient() { - /Users/sjs/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -s $(find /var/folders -name server -type s -uid $(id -u) 2>| /dev/null | grep emacs) $* - } +if command_exists vim; then export EDITOR="vim" - if command_exists mate; then - export EDITOR="mate -w" - export VISUAL="mate -w" - else - export VISUAL="vim" - fi -elif linux && command_exists emacs; then - export EDITOR="emacs -nw" - export VISUAL="emacs" + export VISUAL="vim" else - export EDITOR=vi - export VISUAL=vi -fi - -if command_exists rmate; then - export RMATE_HOST="h.samhuri.net" + export EDITOR="vi" + export VISUAL="vi" fi