From 73455f0d9ed45e6de9752271b5aa9056864e79d6 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Thu, 28 Oct 2021 11:44:23 +0200 Subject: [PATCH] Better autocompletion for Darwin too --- zsh.d/Darwin/60-complete.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 zsh.d/Darwin/60-complete.zsh diff --git a/zsh.d/Darwin/60-complete.zsh b/zsh.d/Darwin/60-complete.zsh new file mode 100644 index 0000000..0db564e --- /dev/null +++ b/zsh.d/Darwin/60-complete.zsh @@ -0,0 +1,12 @@ +if type brew &>/dev/null +then + FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" + # + # Reload compinit and bashcompinit, to parse brew installed completions + autoload -U compinit + autoload bashcompinit + compinit -u + bashcompinit + +fi +