show-config command outputs the current Ghostty configuration in a valid configuration file format.
Usage
Description
This command displays the effective configuration that Ghostty is using. By default, it only shows options that differ from the default values. The output is valid Ghostty configuration syntax that can be copied directly into a config file. The output format may not exactly match your input configuration files (comments, whitespace, and formatting are not preserved), but it will result in the same behavior.Options
Show the default configuration instead of loading the user configuration. Useful for seeing what Ghostty’s built-in defaults are.
Only show options that have been changed from the default values. This has no effect when
--default is specified.Set to false to show all configuration options regardless of whether they’ve been changed.Print documentation above each option as a comment. This makes the output very verbose but is extremely useful for learning about available options, especially when combined with
--default.Display help information for this command.
Examples
Show Your Current Changes
Show All Default Options
Show Config with Documentation
Backup Your Configuration
Compare with Defaults
Export for Sharing
Output Format
The output follows standard Ghostty configuration syntax:Format
Use Cases
For New Users
Explore all available options and their defaults:For Configuration Management
Generate a clean configuration file:For Debugging
Verify what Ghostty is actually loading:For Documentation
Generate configuration with inline documentation:Notes
The output order is consistent between runs but doesn’t necessarily match the order in your input files. Options are grouped logically by the configuration system.
When using
--changes-only=false without --default, you’ll see your customized values merged with all default values.Conditional configurations and platform-specific settings are evaluated before output, so you’ll see the effective configuration for your current platform.
See Also
- validate-config - Validate configuration files
- edit-config - Open config in editor
- Configuration Reference
- list-themes
- list-fonts