Created
June 8, 2019 15:01
-
-
Save loliGothicK/1b73312944c65a05e1124ba33da8b431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# A hash array for zplug | |
typeset -gx -A zplugs | |
zplugs=() | |
# A variable as a starting point of zplug | |
typeset -gx ZPLUG_ROOT="${${(%):-%N}:A:h}" | |
# Load basic functions such as an __zplug::base function | |
source "$ZPLUG_ROOT/base/init.zsh" | |
# Load autoloader | |
source "$ZPLUG_ROOT/autoload/init.zsh" | |
__zplug::base "base/*" | |
__zplug::base "core/*" | |
__zplug::base "io/*" | |
__zplug::base "log/*" | |
__zplug::base "job/*" | |
__zplug::base "sources/*" | |
__zplug::base "utils/*" | |
if ! __zplug::core::core::prepare; then | |
__zplug::io::print::f \ | |
--die \ | |
--zplug \ | |
--error \ | |
"The loading of zplug was discontinued.\n" | |
return 1 | |
fi | |
# Load the external file of zplug | |
__zplug::io::file::load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment