diff --git a/.gitmodules b/.gitmodules index 6494149..ee6967d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "modules/prompt/functions/pure"] path = modules/prompt/external/pure url = https://github.com/sindresorhus/pure.git +[submodule "modules/fasd/external"] + path = modules/fasd/external + url = https://github.com/clvv/fasd diff --git a/modules/fasd/external b/modules/fasd/external new file mode 160000 index 0000000..90b531a --- /dev/null +++ b/modules/fasd/external @@ -0,0 +1 @@ +Subproject commit 90b531a5daaa545c74c7d98974b54cbdb92659fc diff --git a/modules/fasd/init.zsh b/modules/fasd/init.zsh index fc21425..9a68d0d 100644 --- a/modules/fasd/init.zsh +++ b/modules/fasd/init.zsh @@ -9,10 +9,8 @@ # Load dependencies. pmodload 'editor' -# Return if requirements are not found. -if (( ! $+commands[fasd] )); then - return 1 -fi +# Source module file. +source "${0:h}/external/fasd" || return 1 # # Initialization