From 35902d00d9d69ce00902679eb1363fa499412e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Sat, 31 Oct 2015 00:53:41 +0100 Subject: [PATCH] Fixed pygmentize in less. Was not working correctly with file extensions unknown to pygmenties. Added the -g option to pygmentize command. --- plugins/available/less-pretty-cat.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/less-pretty-cat.plugin.bash b/plugins/available/less-pretty-cat.plugin.bash index b6d31b86..9221dde6 100644 --- a/plugins/available/less-pretty-cat.plugin.bash +++ b/plugins/available/less-pretty-cat.plugin.bash @@ -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