From ee676ea1dad484b108834e5f4720118c3d9a824b Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 13 Aug 2011 08:59:58 -0700 Subject: [PATCH] [zsh] update EDITOR --- zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 37c4b7d..78718ab 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -55,6 +55,7 @@ if mac; then } export EDITOR="vim" if which mate >/dev/null 2>&1; then + export EDITOR="mate -w" export VISUAL="mate -w" else export VISUAL="vim" @@ -309,9 +310,8 @@ if mac; then fi function e() { - "$EDITOR" "$@" >/dev/null &! + $EDITOR "$@" >/dev/null } -alias et="$EDITOR . >/dev/null &!" alias em='emacsclient' # global aliases - work anywhere on line