The `edit-config` command opens the Ghostty configuration file in the
editor specified by the `$VISUAL` or `$EDITOR` environment variables.

IMPORTANT: This command will not reload the configuration after
editing. You will need to manually reload the configuration using the
application menu, configured keybind, or by restarting Ghostty. We
plan to auto-reload in the future, but Ghostty isn't capable of
this yet.

The filepath opened is the default user-specific configuration
file, which is typically located at `$XDG_CONFIG_HOME/ghostty/config.ghostty`.
On macOS, this may also be located at
`~/Library/Application Support/com.mitchellh.ghostty/config.ghostty`.
On macOS, whichever path exists and is non-empty will be prioritized,
prioritizing the Application Support directory if neither are
non-empty.

This command prefers the `$VISUAL` environment variable over `$EDITOR`,
if both are set. If neither are set, it will print an error
and exit.