mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 04:39:26 +00:00
fasd: fall back to submodule only if command is missing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user