summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-11-09 10:43:24 +0000
committerAlan Pearce2013-11-09 10:44:00 +0000
commit7db736a3fa3e2656b8173ce53265d3648bff16b5 (patch)
treef6f168dcbf024324e7af0383f2b41c6726991615
parent7a8e863372414120e2a25ee4f11ddc7b60e8c03d (diff)
downloadnixfiles-7db736a3fa3e2656b8173ce53265d3648bff16b5.tar.lz
nixfiles-7db736a3fa3e2656b8173ce53265d3648bff16b5.tar.zst
nixfiles-7db736a3fa3e2656b8173ce53265d3648bff16b5.zip
zsh: Add site-functions under /usr/local to fpath, if exists
-rwxr-xr-xzsh/environment.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/environment.zsh b/zsh/environment.zsh
index 080e2344..65000fb8 100755
--- a/zsh/environment.zsh
+++ b/zsh/environment.zsh
@@ -27,6 +27,11 @@ then
 	fpath=(/usr/local/share/zsh-completions $fpath)
 fi
 
+if [[ -d /usr/local/share/zsh/site-functions ]]
+then
+	fpath=(/usr/local/share/zsh/site-functions $fpath)
+fi
+
 export FPATH
 
 case $OSTYPE in