mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Update README.md
This commit is contained in:
parent
66e2284a08
commit
8aa070db0e
1 changed files with 16 additions and 3 deletions
|
@ -10,12 +10,23 @@ To use it, add colorize to the plugins array of your zshrc file:
|
||||||
```
|
```
|
||||||
plugins=(... colorize)
|
plugins=(... colorize)
|
||||||
```
|
```
|
||||||
|
## Configuration
|
||||||
|
|
||||||
## Styles
|
### Colorize tool
|
||||||
|
|
||||||
|
Colorize supports using either the `pygmentize` tool or the `chroma` tool. By default colorize uses `pygmentize` unless it's not installed & `chroma` is installed. However, you can override this with the `ZSH_COLORIZE_TOOL` environment variable:
|
||||||
|
|
||||||
|
```
|
||||||
|
ZSH_COLORIZE_TOOL=chroma
|
||||||
|
```
|
||||||
|
|
||||||
|
### Styles
|
||||||
|
|
||||||
Pygments offers multiple styles. By default, the `default` style is used, but you can choose another theme by setting the `ZSH_COLORIZE_STYLE` environment variable:
|
Pygments offers multiple styles. By default, the `default` style is used, but you can choose another theme by setting the `ZSH_COLORIZE_STYLE` environment variable:
|
||||||
|
|
||||||
`ZSH_COLORIZE_STYLE="colorful"`
|
```
|
||||||
|
ZSH_COLORIZE_STYLE="colorful"
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -32,4 +43,6 @@ In the latter form, the file contents will be concatenated and presented by less
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
You have to install Pygments first: [pygments.org](http://pygments.org/download/)
|
You have to either install Pygments: [pygments.org](http://pygments.org/download/)
|
||||||
|
|
||||||
|
Or install chroma: [https://github.com/alecthomas/chroma](https://github.com/alecthomas/chroma)
|
Loading…
Reference in a new issue