diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-26 22:40:38 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-26 22:40:38 +0100 |
commit | ba069e7731b3afe90a393fb6a36f8f9bda795f8b (patch) | |
tree | 6cf3d20aa079c12a124c0a042f79e638ce316728 /tools/install.sh | |
parent | 2e0cf4a3b07c027312e0c419e083fe125b5883c5 (diff) | |
download | zsh-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-x | tools/install.sh | 2 |
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 |