From 235215366c2f5858f6dfdd920a2aae72cb1e3e79 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Mar 2013 23:48:21 -0400 Subject: [PATCH] Check for mvim for vim alias --- zsh/aliases | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index 8eea1e4e..37117d51 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -17,7 +17,11 @@ alias wd='cd ~/Work/Dev/' alias wp='cd ~/Work/Projects/' # Apps ######################### -alias v='mvim' +if [ `command -v "mvim"` ]; then + alias v='mvim' +else + alias v='vim' +fi alias rb='ruby' alias py='python' alias js='node'