diff options
Diffstat (limited to 'alacritty_terminal/src/tty')
-rw-r--r-- | alacritty_terminal/src/tty/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index 2bb5e973..d1e5bdb5 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -173,7 +173,7 @@ pub fn new(config: &PtyConfig, window_size: WindowSize, window_id: Option<usize> // Set $SHELL environment variable on macOS, since login does not do it for us. #[cfg(target_os = "macos")] - builder.env("SHELL", config.shell.as_ref().map(|sh| sh.program()).unwrap_or(pw.shell)); + builder.env("SHELL", config.shell.as_ref().map_or(pw.shell, Program::program)); if let Some(window_id) = window_id { builder.env("WINDOWID", format!("{}", window_id)); |