Skip to content

Run a command and highlight its stderr, preserving the order of stdout and stderr

Notifications You must be signed in to change notification settings

joshtriplett/highlight-stderr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlight-stderr

highlight-stderr runs a command and highlights the stderr of that command, while preserving the order of stdout and stderr. It sends both stdout and stderr of the command to its stdout, making it easy to pipe to a pager or similar.

Screenshot of highlight-stderr

By default, highlight-stderr will highlight stderr in bold red, and leave stdout normal. However, you can configure highlight-stderr using the environment variables HIGHLIGHT_STDERR and HIGHLIGHT_STDOUT, which can each contain a color specification in git's color specification format, such as bold white red.

highlight-stderr uses io-mux to capture the stdout and stderr of the command.

highlight-stderr only runs on Linux.

About

Run a command and highlight its stderr, preserving the order of stdout and stderr

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages