0ee89d965ecaa4f32cf2d1039e9d84a73eb206cf

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add brew completion missing disclaimer

Diff

 1diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
 2index 5b5847328bb60cbb0ddc4991855b58fe4af05f96..d4289c98e35663abbf2422510c33fbec63214bd2 100644
 3--- a/plugins/brew/brew.plugin.zsh
 4+++ b/plugins/brew/brew.plugin.zsh
 5@@ -2,3 +2,19 @@ alias brews='brew list -1'
 6 alias bubo='brew update && brew outdated'
 7 alias bubc='brew upgrade && brew cleanup'
 8 alias bubu='bubo && bubc'
 9+
10+if 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+
14+		  With the advent of their 1.0 release, Homebrew has decided to bundle
15+		  the zsh completion as part of the brew installation, so we no longer
16+		  ship it with the brew plugin; now it only has brew aliases.
17+
18+		  If you find that brew completion no longer works, make sure you have
19+		  your Homebrew installation fully up to date.
20+
21+		  You will only see this message once.
22+	EOF
23+	print -P '%f'
24+fi