summaryrefslogtreecommitdiff
path: root/isabat
blob: 12efd1ddbfecbb6ef40aa0e2596e9d09f959e7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
set -euo pipefail

if [ $# -eq 0 ]
then
    echo "isabat: pretty-print isabelle theories on a terminal using bat."
    echo ""
    echo "please provide a .thy file to display."
    exit
fi

cat "$1" | isabelle2unicode | bat --file-name "$1" --theme TwoDark