Others point to paying for text expanders, but a simple free one is Espanso.
I use it in combination with nvim and bash scripts to set up large HTML templates and latex math formulas as well as much else to save on repetitive typing.
Getting creative with espanso and nvim can be quite satisfying, especially if you code.


























Yeah, it’s just that the output is anywhere you can type, not just the terminal or a clipboard.