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 64941492..ee6967de 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 00000000..90b531a5 --- /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 fc214251..9a68d0d2 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