From ef86f649454639062e1760c904dd9b81c2d2d81a Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Sat, 1 Apr 2023 22:03:34 +0100 Subject: [PATCH] fix(zshrc): Allow loading local site-functions Some programs install completion to `~/.local/zsh/site-functions` adding this path to `fpath` allows them to be loaded by `compinit` --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index ecdb2a3..6412fe6 100644 --- a/zshrc +++ b/zshrc @@ -24,6 +24,9 @@ autoload setTermTitle autoload tempPersist autoload has +## check for and load .local/share/zsh/site-functions +[ -d "$HOME/.local/share/zsh/site-functions" ] && fpath=("$HOME/.local/share/zsh/site-functions" $fpath) + ## Source Other files source ${ZDOTDIR}/aliases source ${ZDOTDIR}/dir_aliases