1
0
mirror of https://github.com/zplug/zplug synced 2025-08-27 00:01:40 +02:00
zplug/autoload/init.zsh
Naoki Mizuno e01833c95e Change directory structure
lib/     -> base/
src/     -> misc/
src/ext/ -> base/sources/
2016-04-13 01:25:51 -04:00

38 lines
900 B
Bash

#!/bin/zsh
# init.zsh:
# This file is called only once
if (( $+functions[__import] )); then
return 0
fi
source "$ZPLUG_ROOT/base/init.zsh"
__import "zplug/variables"
__import "zplug/external"
__import "core/core"
__import "job/notify"
__import "print/print"
if ! __zplug::core::core::zsh_version 4.3.9; then
__zplug::print::print::die "[zplug] zplug does not work this version of zsh $ZSH_VERSION.\n"
__zplug::print::print::die " You must use zsh 4.3.9 or later.\n"
return 1
fi
if (( ! $+commands[git] )); then
__zplug::print::print::die "[zplug] git command not found in \$PATH\n"
__zplug::print::print::die " zplug depends on git 1.7 or later.\n"
return 1
fi
autoload -Uz add-zsh-hook
autoload -Uz colors; colors
autoload -Uz compinit
if ${ZPLUG_CHECK_UPDATE:-false}; then
__zplug::job::notify::check_update
fi
__zplug::zplug::external::load