Allow setting base directory for zplug

This commit is contained in:
Paweł Płazieński 2024-02-27 20:02:21 +01:00
parent 19957b865f
commit 4fd2372dc9

View File

@ -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