Skip to content

Instantly share code, notes, and snippets.

@sebastiancarlos
sebastiancarlos / groff-preview.bash
Last active August 7, 2024 19:13
groff-preview
#! /usr/bin/env bash
# All my gist code is licensed under the MIT license.
# Add this somewhere in your .bashrc
# groff-preview-terminal
# - previews roff file in the terminal
# - uses grog to figure out needed preprocessor and macros
# - sends to terminal output by passing -Tutf8 and then to a pager