add sudo wrapper as optional shell integration feature

This commit is contained in:
Atanas Pepechkov
2024-01-13 18:56:21 +02:00
parent a925afae84
commit ee1366a0a8
5 changed files with 85 additions and 5 deletions

View File

@@ -49,6 +49,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");
return shell;
}