mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
change "auto" to "detect" for shell integration
This commit is contained in:
@ -217,11 +217,11 @@ pub const Config = struct {
|
||||
///
|
||||
/// * "none" - Do not do any automatic injection. You can still manually
|
||||
/// configure your shell to enable the integration.
|
||||
/// * "auto" - Detect the shell based on the filename.
|
||||
/// * "detect" - Detect the shell based on the filename.
|
||||
/// * "fish", "zsh" - Use this specific shell injection scheme.
|
||||
///
|
||||
/// The default value is "auto".
|
||||
@"shell-integration": ShellIntegration = .auto,
|
||||
/// The default value is "detect".
|
||||
@"shell-integration": ShellIntegration = .detect,
|
||||
|
||||
/// This is set by the CLI parser for deinit.
|
||||
_arena: ?ArenaAllocator = null,
|
||||
@ -1233,7 +1233,7 @@ pub const Keybinds = struct {
|
||||
|
||||
pub const ShellIntegration = enum {
|
||||
none,
|
||||
auto,
|
||||
detect,
|
||||
fish,
|
||||
zsh,
|
||||
};
|
||||
|
@ -605,7 +605,7 @@ const Subprocess = struct {
|
||||
const shell_integrated: ?shell_integration.Shell = shell: {
|
||||
const force: ?shell_integration.Shell = switch (opts.full_config.@"shell-integration") {
|
||||
.none => break :shell null,
|
||||
.auto => null,
|
||||
.detect => null,
|
||||
.fish => .fish,
|
||||
.zsh => .zsh,
|
||||
};
|
||||
|
Reference in New Issue
Block a user