summaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-06-30 00:26:51 -0500
committerZachIR <zachir@librem.one>2025-06-30 00:26:51 -0500
commit154e2cc089726fdc1635f4f540a898f874b75b60 (patch)
tree433e42730e33685cba4d4c0772e390491ea8fb4e /zsh/zshrc
parentf473b0506fb988f29d60abc754c0ef31ec9e1128 (diff)
parentfaa34b8084be0814a05512e009d9ffa1ea349670 (diff)
Merge branch 'master' into car
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 532fb15..0e87993 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,5 +1,13 @@
#zmodload zsh/zprof
-if [ -d "$HOME/.zplug" ]; then
+if [ -n "$ZPLUG_HOME" ]; then
+ if [ -d "$ZPLUG_HOME" ]; then
+ export ZPLUG_INSTALLED="y"
+ source "$ZPLUG_HOME/init.zsh"
+ fi
+elif [ -d "$XDG_DATA_HOME/zplug" ]; then
+ export ZPLUG_INSTALLED="y"
+ source "$XDG_DATA_HOME/zplug/init.zsh"
+elif [ -d "$HOME/.zplug" ]; then
export ZPLUG_INSTALLED="y"
source "$HOME/.zplug/init.zsh"
fi