Skip to content

Commit

Permalink
fix(install): add check for $ZDOTDIR (spicetify#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Jan 17, 2023
1 parent 2db0578 commit 6e79534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ endswith_newline() {
check() {
local path="export PATH=\$PATH:$spicetify_install"
local shellrc=$HOME/$1

if [ "$1" == ".zshrc" ] && [ ! -z "${ZDOTDIR}" ]; then
shellrc=$ZDOTDIR/$1
fi

# Create shellrc if it doesn't exist
if ! [ -f $shellrc ]; then
Expand Down

0 comments on commit 6e79534

Please sign in to comment.