mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Update INSTALL.md
This commit is contained in:
parent
09b8e47489
commit
2409de46e7
33
INSTALL.md
33
INSTALL.md
@ -3,7 +3,6 @@
|
|||||||
* [Manual (preferred)](#manual-git-clone)
|
* [Manual (preferred)](#manual-git-clone)
|
||||||
* [Packages](#packages)
|
* [Packages](#packages)
|
||||||
* [Plugin Managers](#plugin-managers)
|
* [Plugin Managers](#plugin-managers)
|
||||||
* [Oh My Zsh](#oh-my-zsh)
|
|
||||||
|
|
||||||
## Manual (Git Clone)
|
## Manual (Git Clone)
|
||||||
|
|
||||||
@ -58,22 +57,6 @@
|
|||||||
|
|
||||||
See also [repology's cross-distro index](https://repology.org/metapackage/zsh-syntax-highlighting/versions)
|
See also [repology's cross-distro index](https://repology.org/metapackage/zsh-syntax-highlighting/versions)
|
||||||
|
|
||||||
## Oh My Zsh
|
|
||||||
|
|
||||||
1. Clone this repository in oh-my-zsh's plugins directory:
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
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`:
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
plugins=( [plugins...] zsh-syntax-highlighting)
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Start a new terminal session.
|
|
||||||
|
|
||||||
## Plugin Managers
|
## Plugin Managers
|
||||||
|
|
||||||
Note that `zsh-syntax-highlighting` must be the last plugin sourced.
|
Note that `zsh-syntax-highlighting` must be the last plugin sourced.
|
||||||
@ -91,6 +74,22 @@ This list is incomplete as there are too many
|
|||||||
|
|
||||||
Add `antigen bundle zsh-users/zsh-syntax-highlighting` to your `.zshrc`.
|
Add `antigen bundle zsh-users/zsh-syntax-highlighting` to your `.zshrc`.
|
||||||
|
|
||||||
|
#### [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh)
|
||||||
|
|
||||||
|
1. Clone this repository in oh-my-zsh's plugins directory:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
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` by adding `zsh-syntax-highlighting` to the plugin list:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
plugins=( [plugins...] zsh-syntax-highlighting)
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Start a new terminal session.
|
||||||
|
|
||||||
#### [Prezto](https://github.com/sorin-ionescu/prezto)
|
#### [Prezto](https://github.com/sorin-ionescu/prezto)
|
||||||
|
|
||||||
Zsh-syntax-highlighting is included with Prezto. See the
|
Zsh-syntax-highlighting is included with Prezto. See the
|
||||||
|
Loading…
Reference in New Issue
Block a user