Add fundle step (#90)
This commit is contained in:
@@ -295,6 +295,7 @@ fn run() -> Result<()> {
|
|||||||
runner.execute(Step::Shell, "bash-it", || unix::run_bashit(&ctx))?;
|
runner.execute(Step::Shell, "bash-it", || unix::run_bashit(&ctx))?;
|
||||||
runner.execute(Step::Shell, "oh-my-fish", || unix::run_oh_my_fish(&ctx))?;
|
runner.execute(Step::Shell, "oh-my-fish", || unix::run_oh_my_fish(&ctx))?;
|
||||||
runner.execute(Step::Shell, "fish-plug", || unix::run_fish_plug(&ctx))?;
|
runner.execute(Step::Shell, "fish-plug", || unix::run_fish_plug(&ctx))?;
|
||||||
|
runner.execute(Step::Shell, "fundle", || unix::run_fundle(&ctx))?;
|
||||||
runner.execute(Step::Tmux, "tmux", || tmux::run_tpm(&base_dirs, run_type))?;
|
runner.execute(Step::Tmux, "tmux", || tmux::run_tpm(&base_dirs, run_type))?;
|
||||||
runner.execute(Step::Tldr, "TLDR", || unix::run_tldr(run_type))?;
|
runner.execute(Step::Tldr, "TLDR", || unix::run_tldr(run_type))?;
|
||||||
runner.execute(Step::Pearl, "pearl", || unix::run_pearl(run_type))?;
|
runner.execute(Step::Pearl, "pearl", || unix::run_pearl(run_type))?;
|
||||||
|
|||||||
@@ -157,6 +157,23 @@ pub fn run_fish_plug(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
ctx.run_type().execute(&fish).args(["-c", "plug update"]).check_run()
|
ctx.run_type().execute(&fish).args(["-c", "plug update"]).check_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Upgrades `fundle` and `fundle` plugins.
|
||||||
|
///
|
||||||
|
/// `fundle` is a package manager for the Fish shell.
|
||||||
|
///
|
||||||
|
/// See: <https://github.com/danhper/fundle>
|
||||||
|
pub fn run_fundle(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let fish = require("fish")?;
|
||||||
|
ctx.base_dirs().home_dir().join(".config/fish/fundle").require()?;
|
||||||
|
|
||||||
|
print_separator("fundle");
|
||||||
|
|
||||||
|
ctx.run_type()
|
||||||
|
.execute(fish)
|
||||||
|
.args(["-c", "fundle self-update && fundle update"])
|
||||||
|
.check_run()
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "android", target_os = "macos")))]
|
#[cfg(not(any(target_os = "android", target_os = "macos")))]
|
||||||
pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> {
|
pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let gdbus = require("gdbus")?;
|
let gdbus = require("gdbus")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user