Ghostty Shell Configuration Guide | Generated by AI

Home 2025.10

Ghostty and .bashrc on Ubuntu

Ghostty behaves similarly to the default GNOME Terminal on Ubuntu (and other Linux distros) when it comes to loading .bashrc. By default, Ghostty starts non-login interactive shells for bash, which means it sources ~/.bashrc directly—just like GNOME Terminal. This is the standard behavior for most Linux terminals, where .bashrc handles interactive shell setup (e.g., aliases, prompts, environment variables for non-login sessions).

How It Loads .bashrc

In short, yes—Ghostty is the same as the default Terminal for using .bashrc on Ubuntu, with the same non-login default.

Ghostty on macOS: .zprofile or .bash_profile?

On macOS, Ghostty follows the platform’s tradition (like Terminal.app) and starts login shells by default, regardless of the shell. This affects which profile loads:

So, it loads ~/.zprofile for the default zsh setup, or ~/.bash_profile if you’re using bash. You can switch shells or tweak via Ghostty’s config if needed.

Shell Integration - Ghostty
macOS Login Shells - Ghostty
Potential bug, .bashrc not read on startup - GitHub Discussion
Bash Startup Files - GNU Manual


Back

x-ai/grok-4-fast

Donate