|
ttx 0.1.0
|
ttx can be installed via nix or by downloading a statically linked binary created in CI. Using nix is preferred because it will install dependencies and associated files automatically. To build ttx from source, see the steps here.
The latest builds of ttx are available by here. You must download the correct version of ttx for your platform. If you are using a platform other than an ARM mac or x86_64 linux you must compile from source or use nix.
The following script downloads the latest release to ~/.local/bin, installs shell completion scripts, and compiles the ttx terminfo.
The script installs the following files:
| File | Desciption |
|---|---|
| ~/.local/bin/ttx | The actual ttx binary. |
| ~/.local/share/bash-completions/completions/ttx.bash | Shell completion script for bash. |
| ~/.local/share/zsh/site-functions/_ttx | Shell completion script for zsh. |
| ~/.terminfo/<VARIES>/xterm-ttx | Terminfo for ttx. The actual path varies depending on the platform. |
Once installed, ensure you add ~/.local/bin to your PATH in your shell's init scripts, via:
Terminfo should be found automatically as the files have been installed to their standard locations. Bash completions should also work with no additional steps. For zsh, if the completion directory is not already in your fpath you can add it as follows:
Using nix, its easy to run ttx directly without installing it.
This project provides a home manager module which you can import into your own configuration. The following steps assuming your home manager configuration is managed by a flake.
Add this project as an input to your flake:
Import the home manager module:
Enable in your configuration:
This way isn't the recommended way to use nix but works just fine.