Skip to content

Commit

Permalink
Fixed pygmentize in less.
Browse files Browse the repository at this point in the history
Was not working correctly with file extensions unknown to
pygmenties. Added the -g option to pygmentize command.
  • Loading branch information
stepan-a committed Oct 30, 2015
1 parent 39022a5 commit 35902d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/available/less-pretty-cat.plugin.bash
Expand Up @@ -23,6 +23,6 @@ if $(command -v pygmentize &> /dev/null) ; then
about 'it pigments the file passed in and passes it to less for pagination'
param '$1: the file to paginate with less'
example 'less mysite/manage.py'
pygmentize "$*" | "$LESS_BIN" -R
pygmentize -g $* | "$LESS_BIN" -R
}
fi

0 comments on commit 35902d0

Please sign in to comment.