From 621a01fa6cc337d595a91cb08008d57c97b94cf4 Mon Sep 17 00:00:00 2001 From: Damien Broqua Date: Sat, 19 Aug 2023 10:57:55 +0200 Subject: [PATCH] Brew Added config for brew --- dotfiles/.zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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