From 12b335be77e36a582f6d0f86842edef548cf7aca Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 21 Nov 2023 16:28:46 +1100 Subject: [PATCH] Have Zim treat my own config like a plugin, compiling + fpathing it --- dot-config/zsh/zimrc.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot-config/zsh/zimrc.zsh b/dot-config/zsh/zimrc.zsh index 8467ac1..0e2ffdf 100644 --- a/dot-config/zsh/zimrc.zsh +++ b/dot-config/zsh/zimrc.zsh @@ -19,6 +19,11 @@ zeval-if-installed() { zmodule willghatch/zsh-saneopt --source saneopt.plugin.zsh zmodule environment +# Tell Zim about my own configuration. This has two benefits: +# - My personal functions/ directory will be added to fpath, and +# - Zim will automatically zcompile anything with a .zsh extension for me! :) +zmodule $ZDOTDIR + zmodule mafredri/zsh-async --source async.zsh zmodule input