From 16bd403bae8473d55e37dbf653ce81a899899314 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 30 Aug 2021 22:52:31 +0100 Subject: [PATCH] chore(completion): add support for custom site-functions directory --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index 89424ca..2c65013 100644 --- a/zshrc +++ b/zshrc @@ -149,3 +149,9 @@ unsetopt correctall if [ -f "$HOME/.zshrc.local" ]; then source "$HOME/.zshrc.local" fi + +if [ -d "$DOTZSH/site-functions" ]; then + fpath=("$DOTZSH/site-functions" $fpath) +fi + +autoload -U +X bashcompinit && bashcompinit