docs: Simplify/clarify installation instructions.

This also removes an implicit assumption that ~/.zshrc is idempotent.
This commit is contained in:
Daniel Shahaf 2016-05-12 13:25:59 +00:00
parent 62f1c108f3
commit a00ed24ba3

View File

@ -23,7 +23,10 @@ Simply clone this repository and source the script:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
source ~/.zshrc
Then, enable syntax highlighting in the current interactive shell:
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
If `git` is not installed, download and extract a snapshot of the latest If `git` is not installed, download and extract a snapshot of the latest
development tree from: development tree from: