Allow setting base directory for zplug
This commit is contained in:
parent
19957b865f
commit
4fd2372dc9
@ -1,10 +1,12 @@
|
|||||||
# vim: ft=zsh
|
# vim: ft=zsh
|
||||||
|
|
||||||
if [[ ! -f '/usr/share/zplug/init.zsh' ]]; then
|
export ZPLUG_ROOT=${ZPLUG_ROOT:-/usr/share/zplug}
|
||||||
|
|
||||||
|
if [[ ! -f "${ZPLUG_ROOT}/init.zsh" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source /usr/share/zplug/init.zsh
|
source ${ZPLUG_ROOT}/init.zsh
|
||||||
zplug "plugins/git", from:oh-my-zsh
|
zplug "plugins/git", from:oh-my-zsh
|
||||||
zplug "plugins/sudo", from:oh-my-zsh
|
zplug "plugins/sudo", from:oh-my-zsh
|
||||||
zplug "plugins/command-not-found", from:oh-my-zsh
|
zplug "plugins/command-not-found", from:oh-my-zsh
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user