Skip to content

Commit

Permalink
zsh: Do not read global /etc/zshrc for better isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
adaszko committed Aug 1, 2023
1 parent 61f8706 commit 0e31517
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ PROMPT='%% '
/// Get the output from typing `input` into the shell
pub fn complete(&mut self, input: &str, term: &Term) -> std::io::Result<String> {
let mut command = Command::new("zsh");
command.arg("--noglobalrcs");
command.env("PATH", &self.path).env("ZDOTDIR", &self.home);
let echo = false;
comptest(command, echo, input, term, self.timeout)
Expand Down

0 comments on commit 0e31517

Please sign in to comment.