neat trick

This commit is contained in:
Alexander 2025-06-16 19:51:07 -04:00
parent 64acf09214
commit 53154ec9b7
3 changed files with 11 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#! /usr/bin/env bash
if [[ $# -lt 1 ]] || ! { pygmentize -L lexers | grep -qw "$1"; }; then
if [[ $# -lt 1 ]] || ! pygmentize -L lexers | grep -qw "$1"; then
printf "<code>"
cat
printf "</code>"