summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik.jaeger@dswiss.com>2021-11-22 16:58:08 +0100
committerHendrik Jäger <hendrik.jaeger@dswiss.com>2021-11-22 16:58:28 +0100
commit586d8882940918fc349e804a0b06bf9d82fbd0ca (patch)
tree304161b8ec8b755b6d71d58c5c5506142a8fa187
parent4e2d4793e845ab97bf0c6331ad59b71cd2dea69f (diff)
Needs to be set before compinit or completer functions won’t be loaded
-rw-r--r--.zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 8258f1a..68fcb86 100644
--- a/.zshrc
+++ b/.zshrc
@@ -23,6 +23,9 @@ export YSU_MODE=ALL
# I want sbin executables available
export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin
+# where zsh looks for functions
+fpath=(~/.zsh_functions $fpath)
+
# hashed directories are usually independent and standalone
# so they can stay at the top
@@ -99,7 +102,6 @@ source ~/.zsh_zinit
# * follow symlinks
# * work only on plainfiles
# * take only the filename part without dir
-fpath=(~/.zsh_functions $fpath)
autoload ~/.zsh_functions/[^_]*(-.:t)