summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-03-23 18:11:04 -0500
committerzachir <zachir@librem.one>2024-03-23 18:11:04 -0500
commit4e2a91509a3b7d03c2fdc2530360506e427c809b (patch)
tree6aa2104ae8bcba8260922eac10b618a96254c779
parent49dc6f18e5db109c7d28ba9f12c0dea1d78f94a4 (diff)
Fix sh not loading xdg user dirs
-rw-r--r--sh/profile3
-rw-r--r--zsh/.zshenv1
2 files changed, 3 insertions, 1 deletions
diff --git a/sh/profile b/sh/profile
index b226b4c..e0b20de 100644
--- a/sh/profile
+++ b/sh/profile
@@ -6,7 +6,8 @@
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"}
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"}
-[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs"
+. "$HOME/.config/user-dirs.dirs"
+export XDG_DATA_DIRS="${XDG_DATA_DIRS}:$HOME/.nix-profile/share"
# Doesn't seem to work
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android
diff --git a/zsh/.zshenv b/zsh/.zshenv
index 286e11a..1740c82 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -1,3 +1,4 @@
# ZSH SPECIFIC CONFIGS
unset HISTFILE
+[ -f "$HOME/.profile" ] && . "$HOME/.profile"
export ZDOTDIR=$HOME/.config/zsh