From 02d0619f8775515e7a5e96ccc2267c1aec663527 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 6 Jul 2023 18:05:01 -0700 Subject: [PATCH] change "auto" to "detect" for shell integration --- src/config.zig | 8 ++++---- src/termio/Exec.zig | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.zig b/src/config.zig index 8b5bc0918..ac147d017 100644 --- a/src/config.zig +++ b/src/config.zig @@ -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, }; diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index cd1f2ba04..29d716bb8 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -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, };