add .zshenv

This commit is contained in:
2025-07-14 17:38:44 +03:00
parent aeb3f14a90
commit 5bf08de339
2 changed files with 12 additions and 0 deletions

9
.zshenv Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env zsh
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export ZDOTDIR="${ZDOTDIR:-$XDG_CONFIG_HOME/zsh}"
if ! source $ZDOTDIR/.zshenv; then
echo "FATAL Error: Could not source $ZDOTDIR/.zshenv"
return 1
fi