From 8df1639048529b383358000879b5ee078a90b9f9 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 30 May 2026 01:53:55 +0300 Subject: fix: use login shells for macos panes refs #350 --- src/workspace.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/workspace.rs') diff --git a/src/workspace.rs b/src/workspace.rs index a302f3f8..4bab61a7 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -103,7 +103,7 @@ impl Workspace { cols: u16, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, events: mpsc::Sender, render_notify: Arc, render_dirty: Arc, @@ -114,7 +114,7 @@ impl Workspace { cols, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, events, render_notify, render_dirty, @@ -139,7 +139,7 @@ impl Workspace { cols, scrollback_limit_bytes, host_terminal_theme, - "", + crate::pane::PaneShellConfig::new("", crate::config::ShellModeConfig::NonLogin), events, render_notify, render_dirty, @@ -154,7 +154,7 @@ impl Workspace { cols: u16, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, events: mpsc::Sender, render_notify: Arc, render_dirty: Arc, @@ -181,7 +181,7 @@ impl Workspace { cols, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, events, render_notify, render_dirty, @@ -244,7 +244,7 @@ impl Workspace { cwd: PathBuf, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, ) -> std::io::Result<(usize, TerminalState, TerminalRuntime)> { self.create_tab_with_runtime( rows, @@ -252,7 +252,7 @@ impl Workspace { cwd, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, None, ) } @@ -264,7 +264,7 @@ impl Workspace { cwd: PathBuf, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, argv: Option<&[String]>, ) -> std::io::Result<(usize, TerminalState, TerminalRuntime)> { let number = self.tabs.len() + 1; @@ -302,7 +302,7 @@ impl Workspace { cols, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, events, render_notify, render_dirty, @@ -368,7 +368,7 @@ impl Workspace { cwd: Option, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, ) -> std::io::Result { let new_pane = self .active_tab_mut() @@ -380,7 +380,7 @@ impl Workspace { cwd, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, )?; self.register_new_pane(new_pane.pane_id); Ok(new_pane) @@ -395,7 +395,7 @@ impl Workspace { cwd: Option, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, focus_new_pane: bool, ) -> Option> { self.split_pane_with_runtime( @@ -406,7 +406,7 @@ impl Workspace { cwd, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, focus_new_pane, None, ) @@ -433,7 +433,7 @@ impl Workspace { cwd, scrollback_limit_bytes, host_terminal_theme, - "", + crate::pane::PaneShellConfig::new("", crate::config::ShellModeConfig::NonLogin), focus_new_pane, Some(argv), ) @@ -449,7 +449,7 @@ impl Workspace { cwd: Option, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, - default_shell: &str, + shell_config: crate::pane::PaneShellConfig<'_>, focus_new_pane: bool, argv: Option<&[String]>, ) -> Option> { @@ -475,7 +475,7 @@ impl Workspace { cwd, scrollback_limit_bytes, host_terminal_theme, - default_shell, + shell_config, ) } { Ok(new_pane) => new_pane, -- cgit v1.2.3