about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/ctpv/prev/text/glow.sh
blob: 301fe675404fbcb91dce08848f25404627c5ba22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/env dash

# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH

# shellcheck disable=SC2269
f="$f"
# shellcheck disable=SC2269
w="$w"

. %HELPERS

# Specify the style, to force `glow` to output colors.
# tracking issue: https://github.com/charmbracelet/glow/issues/654
# We can't use `hide_script_env` because of some bespoke reason. (It just forces glow to
# run for ever and then return garbage)
glow --style dark --width "$w" "$f"