From 68275d6afa3cb5d98050afe72f2f01fbefe7baea Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 29 Oct 2023 12:02:19 -0700 Subject: [PATCH] config: update some comments around pwd inheritance Fixes #760 --- src/config/Config.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index 453913937..291a4aede 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -280,6 +280,12 @@ command: ?[]const u8 = null, /// The directory to change to after starting the command. /// +/// This setting is secondary to the "window-inherit-working-directory" +/// setting. If a previous Ghostty terminal exists in the same process, +/// "window-inherit-working-directory" will take precedence. Otherwise, +/// this setting will be used. Typically, this setting is used only +/// for the first window. +/// /// The default is "inherit" except in special scenarios listed next. /// On macOS, if Ghostty can detect it is launched from launchd /// (double-clicked) or `open`, then it defaults to "home".