Skip to content

Commit

Permalink
Add fasd as an external module
Browse files Browse the repository at this point in the history
  • Loading branch information
kaluzki authored and belak committed Jul 11, 2017
1 parent d25b251 commit 19990c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions modules/fasd/external
Submodule external added at 90b531
6 changes: 2 additions & 4 deletions modules/fasd/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19990c8

Please sign in to comment.