From 30e1318dd75c4f13ab51d7bd5f3e578d5fef5dc2 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 20 Feb 2020 16:03:01 +0200 Subject: [PATCH] Fix the confusion between zplugin and zplug (fix #328) (#330) --- src/steps/zsh.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/steps/zsh.rs b/src/steps/zsh.rs index 0e59ea0a..3c0e1de0 100644 --- a/src/steps/zsh.rs +++ b/src/steps/zsh.rs @@ -74,15 +74,15 @@ pub fn run_zinit(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> { .unwrap_or_else(|_| base_dirs.home_dir().join(".zinit")) .exists(); - let zplug_exists = env::var("ZPLUG_HOME") + let zplugin_exists = env::var("ZPLUG_HOME") .map(PathBuf::from) - .unwrap_or_else(|_| base_dirs.home_dir().join("zplug")) + .unwrap_or_else(|_| base_dirs.home_dir().join(".zplugin")) .exists(); // Check whether this is a pre- or post- renaming installation let zcommand = if zinit_exists { "zinit" - } else if zplug_exists { + } else if zplugin_exists { "zplugin" } else { return Err(SkipStep.into());