1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

fix(installer): fix POSIX shell syntax of previous commit

This commit is contained in:
Marc Cornellà 2021-12-26 23:27:49 +01:00
parent ba069e7731
commit f85087005a
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -250,9 +250,9 @@ setup_zshrc() {
echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}" echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
sed "/^export ZSH=/ c\\ # Replace $HOME path with '$HOME' in $ZSH variable in .zshrc file
export ZSH=\"${ZSH/$HOME\//\$HOME\/}\" omz=$(echo "$ZSH" | sed "s|^$HOME/|\$HOME/|")
" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp sed "s|^export ZSH=.*$|export ZSH=\"${omz}\"|" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
mv -f ~/.zshrc-omztemp ~/.zshrc mv -f ~/.zshrc-omztemp ~/.zshrc
echo echo