From e436b9b73218e4dd7285324614fc63ee5dad6918 Mon Sep 17 00:00:00 2001 From: Vasiliy Vasilyuk Date: Mon, 30 Oct 2023 23:07:10 +0300 Subject: [PATCH] Configuring brew completions in zsh See https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh --- home/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index dcf0fe5..db76c9d 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -124,3 +124,13 @@ unset file # Initialize starship.rs prompt. [ -x "$(command -v 'starship')" ] && eval "$(starship init zsh)" + +# Configuring brew completions in zsh +# See https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh +if type brew &>/dev/null +then + FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" + + autoload -Uz compinit + compinit +fi