If the script is run within a folder that is not at ~/ then the wrong path will be assigned from the following lines
echo "\e[45m Installing zsh-autosuggestions \e[0m"
# Install zsh-autosuggestions (not via oh-my-zsh)
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
echo "source ${(q-)PWD}/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
echo "\e[45m Installing zsh-syntax-highlighting \e[0m"
# Install zsh-syntax-highlighting (not via oh-my-zsh)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
echo "source ${(q-)PWD}/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
If the script is run within a folder that is not at
~/then the wrong path will be assigned from the following lines