shell-integration: implement no-title option

This adds a new option to the shell integration feature set, `no-title`.
If this option is set, the shell integration will not automatically
update the window title.
This commit is contained in:
Marius Svechla
2024-04-03 21:27:53 +02:00
parent c1b5957cb0
commit e34b373426
4 changed files with 17 additions and 9 deletions

View File

@@ -50,6 +50,7 @@ pub fn setup(
// Setup our feature env vars
if (!features.cursor) try env.put("GHOSTTY_SHELL_INTEGRATION_NO_CURSOR", "1");
if (!features.sudo) try env.put("GHOSTTY_SHELL_INTEGRATION_NO_SUDO", "1");
if (!features.title) try env.put("GHOSTTY_SHELL_INTEGRATION_NO_TITLE", "1");
return shell;
}