mirror of
https://github.com/openai/codex.git
synced 2026-12-03 07:47:10 +00:00
Extract reusable Bash and Zsh startup scripts (#45749)
Expose `shell_startup_script` from `codex-shell-command` and use it for interactive shell snapshot capture, preserving the existing startup scripts. The helper returns an empty script for other shell types; callers remain responsible for login startup flags and shell lifecycle. GitOrigin-RevId: 8cb64c02c08140d2676e67b9db06c9a77649b3eb
This commit is contained in:
1 parent
8a30bc31ef
commit
9899091441
3 files changed
+36
-17
No files matched your search
@@ -2,6 +2,9 @@
|
||||
|
||||
pub mod shell_detect;
|
||||
pub mod shell_snapshot;
|
||||
mod startup;
|
||||
|
||||
pub use startup::shell_startup_script;
|
||||
|
||||
pub mod bash;
|
||||
pub(crate) mod command_safety;
|
||||
|
||||
Reference in new issue
Block a user