mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-02-03 01:12:16 +08:00
fasd: fall back to submodule only if command is missing
This commit is contained in:
parent
19990c8025
commit
04bfb5131b
@ -9,8 +9,11 @@
|
|||||||
# Load dependencies.
|
# Load dependencies.
|
||||||
pmodload 'editor'
|
pmodload 'editor'
|
||||||
|
|
||||||
# Source module file.
|
# If the command doesn't exist externally, we need to fall back to the bundled
|
||||||
source "${0:h}/external/fasd" || return 1
|
# submodule.
|
||||||
|
if (( ! $+commands[fasd] )); then
|
||||||
|
source "${0:h}/external/fasd" || return 1
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Initialization
|
# Initialization
|
||||||
|
Loading…
Reference in New Issue
Block a user