Browse Source

[#23] Add if to conditions to not wrongly return 1

master
Sorin Ionescu 12 years ago
parent
commit
8d98e62b34
  1. 10
      modules/alias/init.zsh

10
modules/alias/init.zsh

@ -135,9 +135,9 @@ if zstyle -t ':omz:alias:diff' color; then @@ -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'

Loading…
Cancel
Save