From d59b574b67e36ec5420cfedcbf489d9184b3a691 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 23 May 2023 09:15:04 +0200 Subject: zsh: move configs to XDG_CONFIG_HOME with the help of ZDOTDIR --- .config/zsh/.zshenv | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .config/zsh/.zshenv (limited to '.config/zsh/.zshenv') diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv new file mode 100644 index 0000000..cdd5691 --- /dev/null +++ b/.config/zsh/.zshenv @@ -0,0 +1,5 @@ +# Ensure that a non-login, non-interactive shell has a defined environment. +if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then + source "${ZDOTDIR:-$HOME}/.zprofile" +fi + -- cgit v1.2.3-70-g09d2