aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2024-05-15 18:38:13 -0400
committerGitHub <noreply@github.com>2024-05-15 22:38:13 +0000
commit3cd35dfe7efe894853ac9251891b37baee440002 (patch)
treed81034fe9efe26ea506d03055f2e9806f5af5a61
parent3a7f21b00c50748016bc4aa2916b13b5a2e27b76 (diff)
downloadalacritty-3cd35dfe7efe894853ac9251891b37baee440002.tar.gz
alacritty-3cd35dfe7efe894853ac9251891b37baee440002.zip
Ignore shell RCs for macOS zsh wrapper
Closes #7886.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty_terminal/src/tty/unix.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5ae7ffb8..a30d6196 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its
- Pressing `Alt` with unicode input will now add `ESC` like for ASCII input
- Decorations use opaque style and system window background on macOS
+- No longer source `~/.zshenv` on macOS
### Fixed
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs
index 54118a58..1336fd04 100644
--- a/alacritty_terminal/src/tty/unix.rs
+++ b/alacritty_terminal/src/tty/unix.rs
@@ -177,7 +177,7 @@ fn default_shell_command(shell: &str, user: &str) -> Command {
// -p: Preserves the environment.
//
// XXX: we use zsh here over sh due to `exec -a`.
- login_command.args(["-flp", user, "/bin/zsh", "-c", &exec]);
+ login_command.args(["-flp", user, "/bin/zsh", "-fc", &exec]);
login_command
}