summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-06-06 15:16:14 -0500
committerzachir <zachir@librem.one>2024-06-06 15:32:40 -0500
commit663699322c45f2c830e167d142d6b3579e849eb4 (patch)
treec194a1b7ce5135e7f22a1e00a3b032737ce77df5 /zsh
parent899297fc07bb6560b543741aff6c8d172429b090 (diff)
Install ZDOTDIR globally and load profile manually
This means I don't need to have either ~/.profile or ~/.zshenv symlinks in the home directory. This adds in an installer to set that up.
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshenv1
1 files changed, 1 insertions, 0 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
index b8c9d48..f02f83a 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -1,4 +1,5 @@
# ZSH SPECIFIC CONFIGS
unset HISTFILE
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
+[ -f /etc/profile ] && . /etc/profile
[ -f "$XDG_CONFIG_HOME/sh/profile" ] && . "$XDG_CONFIG_HOME/sh/profile"