Use consistent checking for zshrc

This commit is contained in:
Roey Darwish Dror
2019-09-15 20:35:48 +03:00
parent eb6460853d
commit faee6c168d

View File

@@ -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()
}