Fixed pygmentize in less.
Was not working correctly with file extensions unknown to pygmenties. Added the -g option to pygmentize command.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user