Add fisherman

This commit is contained in:
Roey Darwish Dror
2018-07-03 14:31:25 +03:00
parent d32e581a2a
commit af02d8d761
3 changed files with 18 additions and 0 deletions

View File

@@ -152,6 +152,13 @@ fn run() -> Result<(), Error> {
}
}
if let Some(fish) = utils::which("fish") {
if home_path(".config/fish/functions/fisher.fish").exists() {
terminal.print_separator("fisherman");
unix::run_fisherman(&fish).report("fisherman", &mut reports);
}
}
if let Some(tpm) = unix::tpm_path() {
terminal.print_separator("tmux plugins");
unix::run_tpm(&tpm).report("tmux", &mut reports);

View File

@@ -17,6 +17,16 @@ pub fn run_zplug(zsh: &PathBuf) -> Result<(), failure::Error> {
Ok(())
}
pub fn run_fisherman(fish: &PathBuf) -> Result<(), failure::Error> {
Command::new(fish)
.args(&["-c", "fisher update"])
.spawn()?
.wait()?
.check()?;
Ok(())
}
pub fn run_tpm(tpm: &PathBuf) -> Result<(), failure::Error> {
Command::new(&tpm).arg("all").spawn()?.wait()?.check()?;