Install Script
install.sh
We provide a well-commented, idempotent Bash script that detects your $TERM, downloads the matching .ti source, compiles it with tic -x, and installs it into ~/.terminfo.
Quick usage
curl -fsSL https://terminfo.me/install.sh | sh
With explicit terminal name
curl -fsSL https://terminfo.me/install.sh | sh -s -- alacritty
Verify checksums
curl -fsSL https://terminfo.me/install.sh | sh -s -- --verify
What the script does
- Self-verifies: Downloads a fresh copy of itself and
install.json, verifies its own SHA-256, and re-executes the verified copy (unless--skip-self-check). - Detects your
$TERMenvironment variable. - Maps it to a
.tifile in this collection. - Downloads the source over HTTPS.
- Optionally verifies the SHA-256 checksum of the terminfo file.
- Runs
tic -x -o ~/.terminfo <file.ti>. - Skips re-installation if the entry is already present and up to date.
Self-verification
Before doing anything else, the script performs a self-check:
- It downloads a fresh copy of
install.shandinstall.jsonfrom the server. - It verifies that the downloaded script’s SHA-256 matches the value published in
install.json. - If they match, it re-executes the verified copy and continues.
- If they don’t match (or the download fails), the script aborts with an error.
This protects you in case the install.sh file on the server (or in a cache) has been tampered with.
You can bypass the self-check with --skip-self-check (not recommended).
Safety
- The script never runs
ticwithsudoor elevated privileges. - It only writes to
~/.terminfoin your home directory. - It fails gracefully with clear error messages if a terminfo entry is missing.
- You can inspect the script at any time before piping it to
sh.