Don't run zsh in interactive mode to determine zsh_custom (#446)

This commit is contained in:
Roey Darwish Dror
2020-06-24 13:32:48 +03:00
committed by GitHub
parent f27ec9cc18
commit a9e529eb79

View File

@@ -90,9 +90,8 @@ pub fn run_oh_my_zsh(ctx: &ExecutionContext) -> Result<()> {
print_separator("oh-my-zsh");
let mut custom_dir = PathBuf::from(
Command::new("zsh")
.args(&["-i", "-c", "echo -n $ZSH_CUSTOM"])
.check_output()?,
env::var::<_>("ZSH_CUSTOM")
.or_else(|_| Command::new("zsh").args(&["-c", "echo -n $ZSH_CUSTOM"]).check_output())?,
);
custom_dir.push("plugins");