Skip to content

Incorrect zsh paths in ~/.zshrc #2

@zahin-mohammad

Description

@zahin-mohammad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions