From 3c40bb9a842a7527784c8466382fb1aeb8ba4c36 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Tue, 8 Oct 2024 23:40:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20fix(zsh-setup):=20check=20if=20`?= =?UTF-8?q?/etc/zsh/zshenv`=20exists=20(#771)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📃 fix(zsh-setup): check if `/etc/zsh/zshenv` exists * 📃 fix(zsh-setup): create `/env/zsh` dir Co-authored-by: nnyyxxxx --------- Co-authored-by: nnyyxxxx --- core/tabs/applications-setup/zsh-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tabs/applications-setup/zsh-setup.sh b/core/tabs/applications-setup/zsh-setup.sh index 01a93c8a..a85b9240 100644 --- a/core/tabs/applications-setup/zsh-setup.sh +++ b/core/tabs/applications-setup/zsh-setup.sh @@ -44,6 +44,7 @@ RPROMPT='%F{15}(%F{166}%D{%H:%M}%F{15})%f' EOL # Ensure /etc/zsh/zshenv sets ZDOTDIR to the user's config directory + [ ! -f /etc/zsh/zshenv ] && "$ESCALATION_TOOL" mkdir -p /etc/zsh && "$ESCALATION_TOOL" touch /etc/zsh/zshenv echo "export ZDOTDIR=\"$HOME/.config/zsh\"" | "$ESCALATION_TOOL" tee -a /etc/zsh/zshenv }