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
|
/// * "none" - Do not do any automatic injection. You can still manually
|
||||||
/// configure your shell to enable the integration.
|
/// 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.
|
/// * "fish", "zsh" - Use this specific shell injection scheme.
|
||||||
///
|
///
|
||||||
/// The default value is "auto".
|
/// The default value is "detect".
|
||||||
@"shell-integration": ShellIntegration = .auto,
|
@"shell-integration": ShellIntegration = .detect,
|
||||||
|
|
||||||
/// This is set by the CLI parser for deinit.
|
/// This is set by the CLI parser for deinit.
|
||||||
_arena: ?ArenaAllocator = null,
|
_arena: ?ArenaAllocator = null,
|
||||||
@ -1233,7 +1233,7 @@ pub const Keybinds = struct {
|
|||||||
|
|
||||||
pub const ShellIntegration = enum {
|
pub const ShellIntegration = enum {
|
||||||
none,
|
none,
|
||||||
auto,
|
detect,
|
||||||
fish,
|
fish,
|
||||||
zsh,
|
zsh,
|
||||||
};
|
};
|
||||||
|
@ -605,7 +605,7 @@ const Subprocess = struct {
|
|||||||
const shell_integrated: ?shell_integration.Shell = shell: {
|
const shell_integrated: ?shell_integration.Shell = shell: {
|
||||||
const force: ?shell_integration.Shell = switch (opts.full_config.@"shell-integration") {
|
const force: ?shell_integration.Shell = switch (opts.full_config.@"shell-integration") {
|
||||||
.none => break :shell null,
|
.none => break :shell null,
|
||||||
.auto => null,
|
.detect => null,
|
||||||
.fish => .fish,
|
.fish => .fish,
|
||||||
.zsh => .zsh,
|
.zsh => .zsh,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user