summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-06-30 20:15:08 -0500
committerzachir <zachir@librem.one>2025-06-30 20:15:08 -0500
commitb413c6caae608500846872c17392e04d39c1bcb9 (patch)
tree3be0bb6ebf9f5612c7b1eef0efb5cb99234ea588 /zsh
parentacbbf1cf0af13fe4474927425c7d30fedd0e7236 (diff)
parent9ed20f04a91fe019f3a918289df444979bab77b4 (diff)
Merge branch 'master' into cla
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc13
1 files changed, 11 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index f748913..f8fdac5 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,8 +1,17 @@
#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
+[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
HISTFILE="$XDG_CONFIG_HOME/zsh/hist"
SAVEHIST=1000
HISTSIZE=1000
@@ -80,6 +89,6 @@ if [ -n "$ZPLUG_INSTALLED" ]; then
fi
autoload -Uz compinit
-compinit
+compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
#zprof