aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/zsh/.zshrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 741497b..0a0edfc 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -247,10 +247,16 @@ unsetopt CLOBBER
# Externals
#
-# TODO: Add conditional to check for availability
-
# include completions path in directory
-fpath=(/usr/share/zsh/site-functions/ $fpath)
+completion_dirs=(
+ /usr/share/zsh/site-functions
+ "$HOME/.config/zsh/completions"
+)
+for p in ${completion_dirs}; do
+ if [[ -d "$p" ]]; then
+ fpath=("$p" $fpath)
+ fi
+done
# Completion
#