Commit Graph

12 Commits

Author SHA1 Message Date
23ad6625ba
cat-highlight: Fix error check
It caused cat-highlight to always return with an error status.
2022-04-25 00:16:38 +02:00
d2e68c5c8f
Reorganise highlighter selection in less and cat
- LESSOPEN contains lesspipe{,sh} only
- ~/.lessfilter tries more highlighters
- cat-highlight processes each file independently
- cat-highlight tries to use ~/.lessfilter
2022-04-24 23:53:52 +02:00
16fcbdd23a
Quote properly in cat-highlight() 2022-04-10 03:58:41 +02:00
d2d2a166df
Make cat-highlight() work with spaces in filenames 2022-04-10 03:25:50 +02:00
386fcc82bd
cat-highlight: Allow unset variables 2022-04-03 07:38:07 +02:00
83ff053395
Zsh functions: set options for better error handling 2022-04-03 05:47:50 +02:00
f70d5de54d
Add btrfs-snapshot-compare 2022-03-26 17:53:28 +01:00
f4f8db2359
Zsh: Add pygmentize and source-highlight as LESSOPEN candidates
Remove src-hilite-lesspipe.sh, it is a wrapper around source-highlight.
2022-03-22 01:00:14 +01:00
4e1fdfa87e
cat-highlight: Add support for CATOPEN; add example 2022-03-20 01:56:40 +01:00
a7a404fa92
cat-highlight: Don't try to use lesspipe 2022-03-20 00:26:38 +01:00
c00f5dce6e
Zsh: Make functions also usable as shell scripts 2022-03-19 04:34:14 +01:00
7cc2df5318
Zsh: Put functions in directory and autoload them 2022-03-19 04:13:51 +01:00