change "auto" to "detect" for shell integration

This commit is contained in:
Mitchell Hashimoto
2023-07-06 18:05:01 -07:00
parent 8239f09d9d
commit 02d0619f87
2 changed files with 5 additions and 5 deletions

View File

@ -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,
};

View File

@ -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,
};