mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 20:30:09 +00:00
Update link for Pygments
Also moving the dependencies section up
This commit is contained in:
parent
1a0500b00d
commit
16ef5cca44
1 changed files with 6 additions and 4 deletions
|
@ -6,11 +6,17 @@ Colorize will highlight the content based on the filename extension. If it can't
|
|||
method for a given extension, it will try to find one by looking at the file contents. If no highlight method
|
||||
is found it will just cat the file normally, without syntax highlighting.
|
||||
|
||||
## Setup
|
||||
|
||||
To use it, add colorize to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... colorize)
|
||||
```
|
||||
|
||||
### Requirements
|
||||
|
||||
This plugin requires that Pygments be installed: [pygments.org](https://pygments.org/)
|
||||
|
||||
## 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:
|
||||
|
@ -29,7 +35,3 @@ Note that `cless` will behave as less when provided more than one file: you have
|
|||
the commands `:n` for next and `:p` for previous. The downside is that less options are not supported.
|
||||
But you can circumvent this by either using the LESS environment variable, or by running `ccat file1 file2|less --opts`.
|
||||
In the latter form, the file contents will be concatenated and presented by less as a single file.
|
||||
|
||||
## Requirements
|
||||
|
||||
You have to install Pygments first: [pygments.org](http://pygments.org/download.html)
|
||||
|
|
Loading…
Reference in a new issue