feat(zplug): print separator for zplug step
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user