Browse Source

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

Marc Cornellà 2 years ago
parent
commit
ba069e7731
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/install.sh

+ 1 - 1
tools/install.sh

@@ -251,7 +251,7 @@ setup_zshrc() {
   echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
 
   sed "/^export ZSH=/ c\\
-export ZSH=\"$ZSH\"
+export ZSH=\"${ZSH/$HOME\//\$HOME\/}\"
 " "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
   mv -f ~/.zshrc-omztemp ~/.zshrc