summaryrefslogtreecommitdiff
path: root/tools/install.sh
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-12-26 22:40:38 +0100
committerMarc Cornellà <hello@mcornella.com>2021-12-26 22:40:38 +0100
commitba069e7731b3afe90a393fb6a36f8f9bda795f8b (patch)
tree6cf3d20aa079c12a124c0a042f79e638ce316728 /tools/install.sh
parent2e0cf4a3b07c027312e0c419e083fe125b5883c5 (diff)
downloadzsh-ba069e7731b3afe90a393fb6a36f8f9bda795f8b.tar.gz
zsh-ba069e7731b3afe90a393fb6a36f8f9bda795f8b.tar.bz2
zsh-ba069e7731b3afe90a393fb6a36f8f9bda795f8b.zip
fix(installer): don't hard-code user `$HOME` directory on install
Diffstat (limited to 'tools/install.sh')
-rwxr-xr-xtools/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 47166059d..d210d8cc9 100755
--- a/tools/install.sh
+++ b/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