4A2DSMIMTZQWWZU76RCPYE2HYIGDBHQNZPRSJMQ4Y6T3CTFUZTEQC
if type nix >/dev/null; then
# Hack around missing mainProgram attribute in pygments
# TODO: use nixpkgs_flakeref when this fix is merged
COLORTERM="" TERM="" nix run github:sfrijters/nixpkgs/pygments-mainprogram#python3Packages.pygments -- "$@"
elif type pygmentize >/dev/null; then
COLORTERM="" TERM="" pygmentize "$@"
else
echo "pygmentize command not found"
return 1
fi
# Hack around missing mainProgram attribute in pygments
# TODO: use nixpkgs_flakeref when this fix is merged
COLORTERM="" TERM="" nix run github:sfrijters/nixpkgs/pygments-mainprogram#python3Packages.pygments -- "$@"
if type nix > /dev/null; then
# Hack around missing imagemagick
# TODO: use nixpkgs_flakeref when this fix is merged
nix run github:sfrijters/nixpkgs/tiv-add-wrapper#tiv -- "$@"
elif type tiv >/dev/null; then
tiv "$@"
else
echo "tiv command not found"
return 1
fi
# Hack around missing imagemagick
# TODO: use nixpkgs_flakeref when this fix is merged
nix run github:sfrijters/nixpkgs/tiv-add-wrapper#tiv -- "$@"