From 4fd2372dc92cd5759f05b85f1961669938043810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 27 Feb 2024 20:02:21 +0100 Subject: [PATCH] Allow setting base directory for zplug --- zsh.d/zplug.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zsh.d/zplug.zsh b/zsh.d/zplug.zsh index 5aa2e14..bbf61ea 100644 --- a/zsh.d/zplug.zsh +++ b/zsh.d/zplug.zsh @@ -1,10 +1,12 @@ # 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 fi -source /usr/share/zplug/init.zsh +source ${ZPLUG_ROOT}/init.zsh zplug "plugins/git", from:oh-my-zsh zplug "plugins/sudo", from:oh-my-zsh zplug "plugins/command-not-found", from:oh-my-zsh