feat(zplug): print separator for zplug step

This commit is contained in:
Eric Mark Martin
2019-03-10 01:25:07 -08:00
parent d6bd2e2e3e
commit ffa7ecc10a

View File

@@ -9,7 +9,6 @@ use std::process::Command;
pub fn run_zplug(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> { pub fn run_zplug(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
let zsh = require("zsh")?; let zsh = require("zsh")?;
print_separator("zplug");
env::var("ZPLUG_HOME") env::var("ZPLUG_HOME")
.map(PathBuf::from) .map(PathBuf::from)
@@ -21,6 +20,8 @@ pub fn run_zplug(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
.unwrap_or_else(|_| base_dirs.home_dir().join(".zshrc")) .unwrap_or_else(|_| base_dirs.home_dir().join(".zshrc"))
.require()?; .require()?;
print_separator("zplug");
let cmd = format!("source {} && zplug update", zshrc.display()); let cmd = format!("source {} && zplug update", zshrc.display());
run_type.execute(zsh).args(&["-c", cmd.as_str()]).check_run() run_type.execute(zsh).args(&["-c", cmd.as_str()]).check_run()
} }