docs: Honour $ZDOTDIR in code examples.
Keep references in prose as '~/.zshrc': using $ZDOTDIR in that context would be confusing, and people who set $ZDOTDIR understand these references.
This commit is contained in:
parent
a00ed24ba3
commit
162c826452
@ -22,7 +22,7 @@ How to install
|
||||
Simply clone this repository and source the script:
|
||||
|
||||
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" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||
|
||||
Then, enable syntax highlighting in the current interactive shell:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user