mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
docs(install): Easier way to install using omz
This commit is contained in:
parent
c5ce001467
commit
4e7985a928
@ -83,13 +83,12 @@ your `.zshrc`.
|
|||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Activate the plugin in `~/.zshrc`:
|
2. Activate the plugin:
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
plugins=( [plugins...] zsh-syntax-highlighting)
|
omz plugin enable zsh-syntax-highlighting
|
||||||
```
|
```
|
||||||
|
This updates your `.zshrc` file and enables the plugin in your current session as well.
|
||||||
3. Restart zsh (such as by opening a new instance of your terminal emulator).
|
|
||||||
|
|
||||||
#### [Prezto](https://github.com/sorin-ionescu/prezto)
|
#### [Prezto](https://github.com/sorin-ionescu/prezto)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user