2023-02-20 10:10:52 -06:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
#
|
|
|
|
# NOTE: .zshenv has to live at ~/.zshenv, not in $ZDOTDIR! You can get around this by
|
|
|
|
# symlinking .zshenv from your $ZDOTDIR: `ln -sf $ZDOTDIR/.zshenv ~/.zshenv`
|
|
|
|
#
|
|
|
|
|
|
|
|
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
|
|
|
|
export ZDOTDIR=${ZDOTDIR:-${XDG_CONFIG_HOME}/zsh}
|
2023-02-20 14:48:00 -06:00
|
|
|
export DOTFILES_DIR=${DOTFILES_DIR:-${HOME}/.dotfiles}
|
2023-02-20 10:10:52 -06:00
|
|
|
|
|
|
|
# We use .zprofile for everything else (load for non-login, non-interactive shells).
|
|
|
|
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
|
|
|
source "${ZDOTDIR:-$HOME}/.zprofile"
|
|
|
|
fi
|
|
|
|
|