Important
The script is NOT installing the latest version of ghostty. The commit for Debian/Ubuntu currently working (02/20/2025) is 1.1.3-HEAD+f1f11207.
This script automates the installation of Ghostty on Debian 12 using source files. It installs necessary dependencies, downloads and installs Zig 0.13.0, and builds Ghostty from source. It also ensures a clean installation by removing temporary files after the process.
- Debian 12 (or a similar Debian-based distribution)
- A user with
sudo
privileges
Clone the repository containing this script to your local machine:
git clone https://github.com/drewgrif/myghostty
cd myghostty
Change the permissions to make the script executable:
chmod +x install-ghostty.sh
Execute the script to install Ghostty and its dependencies:
./install-ghostty.sh
The script will:
- Install the necessary dependencies (
libgtk-4-dev
,libadwaita-1-dev
,git
). - Download and install Zig 0.13.0.
- Clone the Ghostty repository from GitHub.
- Build and install Ghostty with optimization for performance.
- Clean up temporary files after the installation is complete.
To verify that Zig has been installed successfully:
zig version
To verify Ghostty has been installed correctly, you can check if it is executable or check the installation paths based on your build setup.
The script automatically removes all temporary files used during the installation process to keep your system clean.
If you encounter any issues:
- Make sure your system has access to the required repositories and internet access for downloading dependencies and source files.
- Check if
zig
is available in your PATH withwhich zig
orzig version
. - Review the logs printed during the script execution for any error messages.
Tip
If you are getting an error using clear
or CTRL+L
command in SSH, look at SSH https://ghostty.org/docs/help/terminfo#ssh