Fixed pygmentize in less.

Was not working correctly with file extensions unknown to
pygmenties. Added the -g option to pygmentize command.
pull/604/head
Stéphane Adjemian (Charybdis) 2015-10-31 00:53:41 +01:00
parent 39022a5226
commit 35902d00d9
1 changed files with 1 additions and 1 deletions

View File

@ -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