summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-08-07 15:32:34 +0200
committerTobias Klauser <tklauser@distanz.ch>2022-08-07 15:33:27 +0200
commit93369e7033efede5cb12781de1c7303b58822d4f (patch)
treebf9d97468ce220d11ccfaed8855f3a71a9e094b1
parent9fad37e621e12a0e67001868fa72d99c5cca045b (diff)
zshenv: add homebrew completions to fpath
-rw-r--r--.zsh/zshenv/01_fpath4
1 files changed, 3 insertions, 1 deletions
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