gh: Force pretty terminal render

The gh (Github CLI) renders nicely in an interactive terminal, and plain markdown in non-interactive output mode.

You can force a pretty TTY-style render in a non-interactive context using the GH_FORCE_TTY environment variable.

For example, if exploring a list of repos using fzf:

gh repo list | fzf --preview 'GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh repo view {1}'
Published on: 17 Jun 2024