From 16ef5cca44d23fbde33de77cf44d0f05804d43e9 Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Fri, 20 Dec 2019 21:45:39 -0800 Subject: [PATCH] Update link for Pygments Also moving the dependencies section up --- plugins/colorize/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/colorize/README.md b/plugins/colorize/README.md index 32dc97b6e..036724a1a 100644 --- a/plugins/colorize/README.md +++ b/plugins/colorize/README.md @@ -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)