eth-p / bat-extras

Bash scripts that integrate bat with various command line tools.
MIT License
1.21k stars 81 forks source link

batman: redirect stderr to /dev/null when rendering preview #110

Open Seas0 opened 9 months ago

Seas0 commented 9 months ago

To avoid preview being flooded by garbage warnings.

eth-p commented 9 months ago

Thanks for adding this! I'll need to add tests for a couple of scenarios1 before merging this, but it looks good code wise.

1 Mainly that it doesn't accidentally suppress legitimate warnings and errors.