glamour
a glamour style, for markdown in glow and in gh's issues, pull requests and readmes. headings, links, quotes and inline code take the editors' markdown colors, and code blocks follow the syntax roles of the editor ports.
files: rime.json · rime-glacier.json · rime-aurora.json · rime-abyss.json · rime-frost.json · on github
install
mkdir -p ~/.config/glow
curl -fsSL https://raw.githubusercontent.com/w0x7y/rime/main/general/glamour/rime.json -o ~/.config/glow/rime.json
glow -s ~/.config/glow/rime.json README.mdother variants
rime-glacier
mkdir -p ~/.config/glow
curl -fsSL https://raw.githubusercontent.com/w0x7y/rime/main/general/glamour/rime-glacier.json -o ~/.config/glow/rime-glacier.json
glow -s ~/.config/glow/rime-glacier.json README.mdrime-aurora
mkdir -p ~/.config/glow
curl -fsSL https://raw.githubusercontent.com/w0x7y/rime/main/general/glamour/rime-aurora.json -o ~/.config/glow/rime-aurora.json
glow -s ~/.config/glow/rime-aurora.json README.mdrime-abyss
mkdir -p ~/.config/glow
curl -fsSL https://raw.githubusercontent.com/w0x7y/rime/main/general/glamour/rime-abyss.json -o ~/.config/glow/rime-abyss.json
glow -s ~/.config/glow/rime-abyss.json README.mdrime-frost
mkdir -p ~/.config/glow
curl -fsSL https://raw.githubusercontent.com/w0x7y/rime/main/general/glamour/rime-frost.json -o ~/.config/glow/rime-frost.json
glow -s ~/.config/glow/rime-frost.json README.mdmake it the default
for glow, run glow config and set style: to the file's full path. glow doesn't expand ~ in its config:
style: "/home/you/.config/glow/rime.json"other variants
rime-glacier
style: "/home/you/.config/glow/rime-glacier.json"rime-aurora
style: "/home/you/.config/glow/rime-aurora.json"rime-abyss
style: "/home/you/.config/glow/rime-abyss.json"rime-frost
style: "/home/you/.config/glow/rime-frost.json"for gh, set GLAMOUR_STYLE in your shell's startup file:
export GLAMOUR_STYLE="$HOME/.config/glow/rime.json"other variants
rime-glacier
export GLAMOUR_STYLE="$HOME/.config/glow/rime-glacier.json"rime-aurora
export GLAMOUR_STYLE="$HOME/.config/glow/rime-aurora.json"rime-abyss
export GLAMOUR_STYLE="$HOME/.config/glow/rime-abyss.json"rime-frost
export GLAMOUR_STYLE="$HOME/.config/glow/rime-frost.json"glow draws code blocks in the nearest of the 256 terminal colors, so they come out slightly off.