mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	fix(installer): fix POSIX shell syntax of previous commit
This commit is contained in:
		@@ -250,9 +250,9 @@ setup_zshrc() {
 | 
			
		||||
 | 
			
		||||
  echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
 | 
			
		||||
 | 
			
		||||
  sed "/^export ZSH=/ c\\
 | 
			
		||||
export ZSH=\"${ZSH/$HOME\//\$HOME\/}\"
 | 
			
		||||
" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
 | 
			
		||||
  # Replace $HOME path with '$HOME' in $ZSH variable in .zshrc file
 | 
			
		||||
  omz=$(echo "$ZSH" | sed "s|^$HOME/|\$HOME/|")
 | 
			
		||||
  sed "s|^export ZSH=.*$|export ZSH=\"${omz}\"|" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
 | 
			
		||||
  mv -f ~/.zshrc-omztemp ~/.zshrc
 | 
			
		||||
 | 
			
		||||
  echo
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user