62b0abdb6e4bedc0c28f97176bd76f74859d82ea
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
brew: fix disclaimer shown if mkdir is aliased
Fixes #5623.
Diff
1diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
2index d4289c98e35663abbf2422510c33fbec63214bd2..6fb7f345313a073eb6efa6aa4fc0143f654f4fae 100644
3--- a/plugins/brew/brew.plugin.zsh
4+++ b/plugins/brew/brew.plugin.zsh
5@@ -3,7 +3,7 @@ alias bubo='brew update && brew outdated'
6 alias bubc='brew upgrade && brew cleanup'
7 alias bubu='bubo && bubc'
8
9-if mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
10+if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
11 print -P '%F{yellow}'Oh My Zsh brew plugin:
12 cat <<-'EOF'
13