Set an environment variable when spawning a login shell
This commit is contained in:
parent
1b91f3de41
commit
af30cab46b
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ pub fn capture(directory: &std::path::Path) -> Result<collections::HashMap<Strin
|
|||
|
||||
let mut command_string = String::new();
|
||||
let mut command = std::process::Command::new(&shell_path);
|
||||
command.env("ZED_CAPTURE_ENVIRONMENT", "1");
|
||||
// In some shells, file descriptors greater than 2 cannot be used in interactive mode,
|
||||
// so file descriptor 0 (stdin) is used instead. This impacts zsh, old bash; perhaps others.
|
||||
// See: https://github.com/zed-industries/zed/pull/32136#issuecomment-2999645482
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue