summaryrefslogtreecommitdiff
path: root/zsh/rc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/rc')
-rw-r--r--zsh/rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/zsh/rc b/zsh/rc
index 4da9158..93d9996 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -1,5 +1,15 @@
# -*- mode: shell-script -*-
+() {
+ local dir
+ for dir (
+ $(dotfiles_root)/zsh/functions
+ $(dotfiles_root)/dotfiles-{${UNAME},${DOMAIN},${HOST}}/zsh/functions
+ ); do
+ [[ -d ${dir} ]] && fpath=(${dir} ${fpath})
+ done
+}
+
autoload -Uz compinit zmv
[[ ! -d ${XDG_CACHE_HOME}/zsh ]] && mkdir -p ${XDG_CACHE_HOME}/zsh