This commit is contained in:
Benjamin Clauss 2023-03-01 17:21:56 -05:00 committed by GitHub
commit 0cc1477f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,12 +89,14 @@ Click the `Install Plugin` button on the [Fig plugin page][fig-plugin].
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 **at the bottom** of `~/.zshrc`:
```zsh ```zsh
plugins=( [plugins...] zsh-syntax-highlighting) plugins=( [plugins...] zsh-syntax-highlighting)
``` ```
See the [FAQ](https://github.com/zsh-users/zsh-syntax-highlighting#why-must-zsh-syntax-highlightingzsh-be-sourced-at-the-end-of-the-zshrc-file) for more details.
3. Restart zsh (such as by opening a new instance of your terminal emulator). 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)