Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/config/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ Ghostty is configured using a text-based configuration file.

### File Location

The configuration file, `config`, is loaded from these locations in the following order:
The configuration file is named `config.ghostty` (or `config` before 1.2.3),
is loaded from these locations in the following order:

#### XDG configuration Path (all platforms):
- `$XDG_CONFIG_HOME/ghostty/config`.
- if **XDG_CONFIG_HOME** is not defined, it defaults to `$HOME/.config/ghostty/config`.
#### macOS-specific Path (macOS only):
- `$HOME/Library/Application\ Support/com.mitchellh.ghostty/config.ghostty`.
- `$HOME/Library/Application\ Support/com.mitchellh.ghostty/config`.
- macOS also supports the XDG configuration path mentioned above.
- macOS also supports the XDG configuration path mentioned below.

#### XDG configuration Path (all platforms):
- `$XDG_CONFIG_HOME/ghostty/config.ghostty`
- `$XDG_CONFIG_HOME/ghostty/config`
- if **XDG_CONFIG_HOME** is not defined, it defaults to `$HOME/.config/ghostty/config`.

If both locations exist, they are loaded in the order above
with conflicting values in later files overriding earlier ones.
Expand Down