Commit Graph

5 Commits

Author SHA1 Message Date
markusdd
f14d4fcc3c turn coloured cat and less into ccat and cless
old approach would override systems cat, which is malicious when used in conjunction with shell piping or redirection
2019-02-22 14:41:01 +01:00
Stéphane Adjemian (Charybdis)
35902d00d9 Fixed pygmentize in less.
Was not working correctly with file extensions unknown to
pygmenties. Added the -g option to pygmentize command.
2015-10-31 00:53:41 +01:00
Nils Winkler
d12d78ddaf Fixed error handling in less-pretty-cat plugin
When pygmentize is not installed, the functions less/cat are not
defined, the native commands will be used instead. Also removed the
error message that was shown when the command was not found.

Using `command -v` instead of `which` to check for the existence of the
executable - this works better as it does not print an error message if
the executable is not found.
2015-07-28 15:50:21 +02:00
Miguel Morales
e143d4f696 Allow for passing arguments to pygmentize 2015-06-09 07:46:32 -05:00
Miguel Morales
6821b6c0dc Add less and remove hard exit 2015-05-24 18:04:42 -05:00