You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
409 B
20 lines
409 B
14 years ago
|
# 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
|
||
14 years ago
|
alias brews='brew list -1'
|
||
14 years ago
|
|