From 93369e7033efede5cb12781de1c7303b58822d4f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 7 Aug 2022 15:32:34 +0200 Subject: zshenv: add homebrew completions to fpath --- .zsh/zshenv/01_fpath | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh/zshenv/01_fpath b/.zsh/zshenv/01_fpath index 10275bc..9deb5b4 100644 --- a/.zsh/zshenv/01_fpath +++ b/.zsh/zshenv/01_fpath @@ -9,8 +9,10 @@ # Source repository: git://git.distanz.ch/dotfiles/zsh.git fpath=($ZDOTDIR/func $fpath) - # add custom completions fpath=($ZDOTDIR/completion $fpath) +# add completitions for commands installed using homebrew +_homebrew_completions=/opt/homebrew/share/zsh/site-functions +[ -d $_homebrew_completions ] && fpath=($fpath $_homebrew_completions) # vim:ft=zsh -- cgit v1.2.3-54-g00ecf