From 5412cb6d6b3a958429a9bf781a95ee81fd29d0b4 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Sun, 29 Jun 2025 23:19:57 -0500 Subject: Make more things XDG compliant Specifically .dotnet, .zplug, and .zcompdump --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index f748913..532fb15 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -80,6 +80,6 @@ if [ -n "$ZPLUG_INSTALLED" ]; then fi autoload -Uz compinit -compinit +compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION" #zprof -- cgit v1.2.3 From faa34b8084be0814a05512e009d9ffa1ea349670 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Mon, 30 Jun 2025 00:25:49 -0500 Subject: Fix zplug install in XDG dir --- zsh/zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'zsh/zshrc') 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 -- cgit v1.2.3 From 9d5498e0a8be1b987c5584659a0e97116ca50079 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Mon, 30 Jun 2025 09:38:19 -0500 Subject: Define XDG_CONFIG_HOME in zshrc if it is not already --- zsh/zshrc | 1 + 1 file changed, 1 insertion(+) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 0e87993..f8fdac5 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -11,6 +11,7 @@ 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 -- cgit v1.2.3