diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index bc87544..bdc5c50 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -83,8 +83,23 @@ plugins=( node nvm emoji + brew ) +if type brew &>/dev/null +then + HOMEBREW_PREFIX="$(brew --prefix)" + if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]] + then + source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" + else + for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"* + do + [[ -r "${COMPLETION}" ]] && source "${COMPLETION}" + done + fi +fi + #zstyle :omz:plugins:ssh-agent agent-forwarding on #zstyle :omz:plugins:ssh-agent identities id_rsa