From faee6c168d51b494f03e900167295256ac6ebddc Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Sun, 15 Sep 2019 20:35:48 +0300 Subject: [PATCH] Use consistent checking for zshrc --- src/steps/os/unix.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index e972d5e0..c845fa04 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -17,9 +17,7 @@ pub fn run_zr(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> { print_separator("zr"); - let zshrc = base_dirs.home_dir().join(".zshrc"); - - let cmd = format!("source {} && zr update", zshrc.display()); + let cmd = format!("source {} && zr update", zshrc(base_dirs).display()); run_type.execute(zsh).args(&["-c", cmd.as_str()]).check_run() }