From d10914390b9ff876c2b7929196e1d3e81d7a618c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 8 Nov 2010 20:22:26 -0800 Subject: [PATCH] use mate -w for VISUAL --- zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 80c920e..45c70d0 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -46,7 +46,11 @@ if mac; then /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 VISUAL="vim" + if which mate >/dev/null 2>&1; then + export VISUAL="mate -w" + else + export VISUAL="vim" + fi elif linux && which emacs >/dev/null 2>&1; then export EDITOR="emacs -nw" export VISUAL="emacs"