bash
Copy a terminfo entry to a remote host over SSH
SSH into a fresh box from Ghostty (or Kitty, WezTerm, foot...) and half your TUIs explode with unknown terminal type. The remote just doesn't have your terminal's terminfo entry, and these custom ones aren't in any distro's ncurses package — they ship with the terminal itself.
The fix: dump terminfo entry with infocmp and pipe it into tic on the remote. It compiles into ~/.terminfo for your user.
infocmp -x xterm-ghostty | ssh user@host -- tic -x -bashtool
lubosmato