diff options
author | zachir <zachir@librem.one> | 2024-06-05 09:09:47 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2024-06-05 09:09:47 -0500 |
commit | f7175b21a3a6cc6965b0ea77e7c47535ce83beec (patch) | |
tree | e9c71e6db1b498ddcfecde3dd2abeac4f02215b5 /zsh | |
parent | c792a807dde9bd592cfd2dca6504c0893966de60 (diff) |
Add better/more XDG support
Implements XDG support for more programs that support it, in various
levels of hackiness.
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshenv | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv index 1740c82..b8c9d48 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,4 +1,4 @@ # ZSH SPECIFIC CONFIGS unset HISTFILE -[ -f "$HOME/.profile" ] && . "$HOME/.profile" -export ZDOTDIR=$HOME/.config/zsh +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +[ -f "$XDG_CONFIG_HOME/sh/profile" ] && . "$XDG_CONFIG_HOME/sh/profile" |