From 19990c80252a588ef0983fe16c2f001391775af8 Mon Sep 17 00:00:00 2001 From: Demjan Kaluzki Date: Thu, 12 Nov 2015 23:08:47 +0100 Subject: [PATCH] Add fasd as an external module --- .gitmodules | 3 +++ modules/fasd/external | 1 + modules/fasd/init.zsh | 6 ++---- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 160000 modules/fasd/external 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