mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Merge 961b42af3a
into 5eb677bb0f
This commit is contained in:
commit
53c9954172
@ -71,13 +71,17 @@ Simply clone this repository and source the script:
|
|||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional:
|
||||||
|
```zsh
|
||||||
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, enable syntax highlighting in the current interactive shell:
|
Then, enable syntax highlighting in the current interactive shell:
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user