Pygments Dig Lexer
Find a file
2020-11-22 08:00:28 +01:00
.gitignore Initial commit 2020-11-22 08:00:28 +01:00
dig-lexer.py Initial commit 2020-11-22 08:00:28 +01:00
README.md Initial commit 2020-11-22 08:00:28 +01:00
screenshot.png Initial commit 2020-11-22 08:00:28 +01:00

Pygments lexer for dig output

This is work in progress and probably quite horrible.

What?

Screenshot of colorful dig output

Why?

dig output can be hard to read, especially with +trace.

How to use?

Put something like this in your .bashrc, .zshrc, or whatever:

function dig() {
    /usr/bin/dig $@ | pygmentize -xl path/to/dig-lexer.py -Ostyle=monokai
}

Then rehash your shell config.