summaryrefslogtreecommitdiff
path: root/plugins/brew/brew.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-11-11 15:20:11 +0100
committerMarc Cornellà <marc.cornella@live.com>2016-11-11 15:20:11 +0100
commit62b0abdb6e4bedc0c28f97176bd76f74859d82ea (patch)
tree385a3740719838cd7339ba8eb029dbb1a7a08954 /plugins/brew/brew.plugin.zsh
parentfe96d194210854e2dc170a226b166253091f2fc0 (diff)
downloadzsh-62b0abdb6e4bedc0c28f97176bd76f74859d82ea.tar.gz
zsh-62b0abdb6e4bedc0c28f97176bd76f74859d82ea.tar.bz2
zsh-62b0abdb6e4bedc0c28f97176bd76f74859d82ea.zip
brew: fix disclaimer shown if mkdir is aliased
Fixes #5623.
Diffstat (limited to 'plugins/brew/brew.plugin.zsh')
-rw-r--r--plugins/brew/brew.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
index d4289c98e..6fb7f3453 100644
--- a/plugins/brew/brew.plugin.zsh
+++ b/plugins/brew/brew.plugin.zsh
@@ -3,7 +3,7 @@ alias bubo='brew update && brew outdated'
alias bubc='brew upgrade && brew cleanup'
alias bubu='bubo && bubc'
-if mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
+if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
print -P '%F{yellow}'Oh My Zsh brew plugin:
cat <<-'EOF'