]> arthur.barton.de Git - ax-zsh.git/commitdiff
homebrew: Clean up ZSH completion handling
authorAlexander Barton <alex@barton.de>
Fri, 15 Apr 2016 19:23:53 +0000 (21:23 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 15 Apr 2016 19:23:53 +0000 (21:23 +0200)
Homebrew recently restructured their repositories and removed the
"brew_zsh_completion.zsh" file; so this "trick" dosn't work any more.

But ZSH completion uses the bash "brew" completion anyways, so
everything should be fine.

This reverts 56a1f26373.

plugins/homebrew/functions/.gitignore [deleted file]
plugins/homebrew/homebrew.zprofile

diff --git a/plugins/homebrew/functions/.gitignore b/plugins/homebrew/functions/.gitignore
deleted file mode 100644 (file)
index d5e2d21..0000000
+++ /dev/null
@@ -1 +0,0 @@
-_brew
index 476b65dd3790fdbfcb7a1af210768d487f070257..670a349c6c371fb21fc03df72905e6a8c62b5372 100644 (file)
@@ -6,11 +6,3 @@
 
 [[ -d "/usr/local/share/zsh-completions" ]] \
        && axzsh_fpath=(/usr/local/share/zsh-completions $axzsh_fpath)
-
-completion_file="$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh"
-target_file="$(dirname "$0")/functions/_brew"
-
-[[ -r "$completion_file" && ! -r "$target_file" ]] \
-       && ln -fs "$completion_file" "$target_file"
-
-unset completion_file target_file