From 9c99e02a7b5d6cf023bbbc5cda62d4602aeb3c83 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Thu, 20 Apr 2023 10:17:31 +0200 Subject: [PATCH] :sparkles: add zsh autocomplete src: https://apple.stackexchange.com/a/377857/200035 --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index 8c2ef89..79c2b12 100644 --- a/.zshrc +++ b/.zshrc @@ -122,6 +122,14 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi +# zsh auto-complete +if type brew &>/dev/null; then + FPATH=$(brew --prefix)/share/zsh-completions:$FPATH + + autoload -Uz compinit + compinit + fi + # for poetry fpath+=~/.zfunc autoload -Uz compinit && compinit