From bf043923a19bdb4457b502b5ac113411410d36ad Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 21 Mar 2013 12:31:41 -0400 Subject: [PATCH] Use command-exists --- zsh/aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index 857a58f9..bce1db82 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -18,7 +18,7 @@ alias wd='cd ~/Work/Dev/' alias wp='cd ~/Work/Projects/' # Apps ######################### -if [ `command -v "mvim"` ]; then +if command-exists mvim; then alias v='mvim' else alias v='vim'