diff options
author | ZachIR <zachir@librem.one> | 2025-06-30 00:25:49 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2025-06-30 00:25:49 -0500 |
commit | faa34b8084be0814a05512e009d9ffa1ea349670 (patch) | |
tree | 546dd99bc353d5dcbf2f1d0297aa5b7ec9585ac9 /zsh/zshrc | |
parent | b3a500c3e04c5aaa7b861bead5afc9f1d867a42b (diff) |
Fix zplug install in XDG dir
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |