ba069e7731b3afe90a393fb6a36f8f9bda795f8b

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(installer): don't hard-code user `$HOME` directory on install

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index 47166059d57628647604180fdf97a2533dcf5365..d210d8cc97d63eb998c21a3f6578c7aa01c80b3d 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -251,7 +251,7 @@ setup_zshrc() {
 6   echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
 7 
 8   sed "/^export ZSH=/ c\\
 9-export ZSH=\"$ZSH\"
10+export ZSH=\"${ZSH/$HOME\//\$HOME\/}\"
11 " "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
12   mv -f ~/.zshrc-omztemp ~/.zshrc
13