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

28 lines
490 B
Bash

#!/bin/zsh
# init.zsh:
# This file is called only once
# It is desirable that the ZPLUG_ROOT and the ZPLUG_HOME is the same
# because zplug should be installed with git clone URL /path/to/local_dir
# e.g. ~/.zplug
typeset -gx ZPLUG_ROOT="${${(%):-%N}:A:h}"
# Unique array
typeset -gx -U path
typeset -gx -U fpath
# Add to the PATH
path=(
"$ZPLUG_ROOT"/bin
$path
)
# Add to the FPATH
fpath=(
"$ZPLUG_ROOT"/autoload(N-/)
"$ZPLUG_ROOT"/misc/completions(N-/)
$fpath
)
autoload -Uz zplug