Skip to content

Commit

Permalink
📃 fix(zsh-setup): check if /etc/zsh/zshenv exists (#771)
Browse files Browse the repository at this point in the history
* 📃 fix(zsh-setup): check if `/etc/zsh/zshenv` exists

* 📃 fix(zsh-setup): create `/env/zsh` dir

Co-authored-by: nnyyxxxx <[email protected]>

---------

Co-authored-by: nnyyxxxx <[email protected]>
  • Loading branch information
2 people authored and Lennart Pieperjohanns committed Oct 17, 2024
1 parent b64796e commit 9b33684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tabs/applications-setup/zsh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9b33684

Please sign in to comment.