mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
📃 fix(zsh-setup): check if /etc/zsh/zshenv
exists (#771)
* 📃 fix(zsh-setup): check if `/etc/zsh/zshenv` exists * 📃 fix(zsh-setup): create `/env/zsh` dir Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com> --------- Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
e9d2e88bc3
commit
3c40bb9a84
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user