From 8d98e62b34ba190f48869449c39d90ba88269c40 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 2 Apr 2012 19:30:04 -0400 Subject: [PATCH] [#23] Add if to conditions to not wrongly return 1 --- modules/alias/init.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/alias/init.zsh b/modules/alias/init.zsh index b88ae54..c16bfaa 100644 --- a/modules/alias/init.zsh +++ b/modules/alias/init.zsh @@ -135,9 +135,9 @@ if zstyle -t ':omz:alias:diff' color; then fi # Miscellaneous -(( $+commands[ack] )) && alias afind='nocorrect ack' -(( $+commands[ebuild] )) && alias ebuild='nocorrect ebuild' -(( $+commands[gist] )) && alias gist='nocorrect gist' -(( $+commands[heroku] )) && alias heroku='nocorrect heroku' -(( $+commands[mysql] )) && alias mysql='nocorrect mysql' +if (( $+commands[ack] )) alias afind='nocorrect ack' +if (( $+commands[ebuild] )) alias ebuild='nocorrect ebuild' +if (( $+commands[gist] )) alias gist='nocorrect gist' +if (( $+commands[heroku] )) alias heroku='nocorrect heroku' +if (( $+commands[mysql] )) alias mysql='nocorrect mysql'