fix(zsh): Make $ZDOTDIR if it doesn't exists
Try to prevent "No such file or directory" error
This commit is contained in:
parent
bf8657c239
commit
ea122dc39a
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ fi
|
|||
|
||||
echo """#!/bin/zsh
|
||||
$__EXTRA
|
||||
export ZDOTDIR=\"\${XDG_CONFIG_HOME:-\$HOME/.config}/zsh\"""" > /etc/__zshenv && \
|
||||
export ZDOTDIR=\"\${XDG_CONFIG_HOME:-\$HOME/.config}/zsh\"
|
||||
[ -d \$ZDOTDIR ] || mkdir -p \$ZDOTDIR""" > /etc/__zshenv && \
|
||||
mv -i /etc/__zshenv $ZSHENV_PATH
|
||||
ln -si $ZSHENV_PATH /etc/zsh/zshenv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue