just use vim or vi for EDITOR and VISUAL
This commit is contained in:
parent
a403a83334
commit
5a01029d03
1 changed files with 4 additions and 21 deletions
25
zsh/zshrc
25
zsh/zshrc
|
|
@ -53,29 +53,12 @@ if [[ -d /usr/local/lib/python ]]; then
|
||||||
export PYTHONPATH="/usr/local/lib/python"
|
export PYTHONPATH="/usr/local/lib/python"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# default editors
|
if command_exists vim; then
|
||||||
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) $*
|
|
||||||
}
|
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
if command_exists mate; then
|
export VISUAL="vim"
|
||||||
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"
|
|
||||||
else
|
else
|
||||||
export EDITOR=vi
|
export EDITOR="vi"
|
||||||
export VISUAL=vi
|
export VISUAL="vi"
|
||||||
fi
|
|
||||||
|
|
||||||
if command_exists rmate; then
|
|
||||||
export RMATE_HOST="h.samhuri.net"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue