From a9e529eb795cc2e443d1f5b1ee79966591365f3c Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 24 Jun 2020 13:32:48 +0300 Subject: [PATCH] Don't run zsh in interactive mode to determine zsh_custom (#446) --- src/steps/zsh.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/steps/zsh.rs b/src/steps/zsh.rs index ca92caa1..debc90e5 100644 --- a/src/steps/zsh.rs +++ b/src/steps/zsh.rs @@ -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");