From f61c2fb7046f9d72be4bfe4a8d614b0fe8d77e5b Mon Sep 17 00:00:00 2001 From: jimmyfraiture Date: Mon, 8 Sep 2025 11:51:34 -0700 Subject: [PATCH] NIT 1 --- codex-rs/core/src/shell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/shell.rs b/codex-rs/core/src/shell.rs index ae26e2c03a..0da18bd15f 100644 --- a/codex-rs/core/src/shell.rs +++ b/codex-rs/core/src/shell.rs @@ -122,7 +122,7 @@ impl Shell { pub fn name(&self) -> Option { match self { - Shell::Posix(shell) => Path::new(&shell.rc_path) + Shell::Posix(shell) => Path::new(&shell.shell_path) .file_name() .map(|s| s.to_string_lossy().to_string()), Shell::PowerShell(ps) => Some(ps.exe.clone()), @@ -336,7 +336,7 @@ mod snapshots { let zshrc = home.join(".zshrc"); capture_script.push_str( - &format!("source {}/.zshrc; setopt posixbuiltins; export -p; {{ alias | sed 's/^/alias /'; }} 2>/dev/null || true", zshrc.display()), + &format!("source {}; setopt posixbuiltins; export -p; {{ alias | sed 's/^/alias /'; }} 2>/dev/null || true", zshrc.display()), ); let output = tokio::process::Command::new(shell_path) .arg("-lc")