Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fasd: fall back to submodule only if command is missing
  • Loading branch information
belak committed Jul 11, 2017
1 parent 19990c8 commit 04bfb51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/fasd/init.zsh
Expand Up @@ -9,8 +9,11 @@
# Load dependencies.
pmodload 'editor'

# Source module file.
source "${0:h}/external/fasd" || return 1
# If the command doesn't exist externally, we need to fall back to the bundled
# submodule.
if (( ! $+commands[fasd] )); then
source "${0:h}/external/fasd" || return 1
fi

#
# Initialization
Expand Down

0 comments on commit 04bfb51

Please sign in to comment.