2011-08-31 05:16:15 +02:00
|
|
|
# Complete brew.
|
|
|
|
completion_file="${0:h}/_brew"
|
|
|
|
if [[ ! -e "$completion_file" ]]; then
|
|
|
|
if [[ -L "$completion_file" ]]; then
|
|
|
|
unlink "$completion_file" 2> /dev/null
|
|
|
|
fi
|
|
|
|
|
|
|
|
if (( $+commands[brew] )); then
|
|
|
|
ln -s \
|
|
|
|
"$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh" \
|
|
|
|
"$completion_file" \
|
|
|
|
2> /dev/null
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
unset completion_file
|
|
|
|
|
|
|
|
# Aliases
|
2011-05-28 16:57:48 +02:00
|
|
|
alias brews='brew list -1'
|
2011-08-31 05:16:15 +02:00
|
|
|
|