Add fisherman
This commit is contained in:
@@ -31,6 +31,7 @@ Just run `topgrade`. It will run the following steps:
|
|||||||
* ~/.config/fish/config.fish
|
* ~/.config/fish/config.fish
|
||||||
* Custom defined paths
|
* Custom defined paths
|
||||||
* *Unix*: Run [zplug](https://github.com/zplug/zplug) update
|
* *Unix*: Run [zplug](https://github.com/zplug/zplug) update
|
||||||
|
* *Unix*: Run [fisherman](https://github.com/fisherman/fisherman) update
|
||||||
* *Unix*: Upgrade tmux plugins with [TPM](https://github.com/tmux-plugins/tpm)
|
* *Unix*: Upgrade tmux plugins with [TPM](https://github.com/tmux-plugins/tpm)
|
||||||
* Update Rustup by running `rustup update`. This will also attempt to run `rustup self update` when Rustup is installed inside the home directory.
|
* Update Rustup by running `rustup update`. This will also attempt to run `rustup self update` when Rustup is installed inside the home directory.
|
||||||
* Run Cargo [install-update](https://github.com/nabijaczleweli/cargo-update)
|
* Run Cargo [install-update](https://github.com/nabijaczleweli/cargo-update)
|
||||||
|
|||||||
@@ -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() {
|
if let Some(tpm) = unix::tpm_path() {
|
||||||
terminal.print_separator("tmux plugins");
|
terminal.print_separator("tmux plugins");
|
||||||
unix::run_tpm(&tpm).report("tmux", &mut reports);
|
unix::run_tpm(&tpm).report("tmux", &mut reports);
|
||||||
|
|||||||
10
src/unix.rs
10
src/unix.rs
@@ -17,6 +17,16 @@ pub fn run_zplug(zsh: &PathBuf) -> Result<(), failure::Error> {
|
|||||||
Ok(())
|
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> {
|
pub fn run_tpm(tpm: &PathBuf) -> Result<(), failure::Error> {
|
||||||
Command::new(&tpm).arg("all").spawn()?.wait()?.check()?;
|
Command::new(&tpm).arg("all").spawn()?.wait()?.check()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user