From abbbf20b40669abbd741c6b9ec9c7508d1411d61 Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 18 May 2026 22:14:45 -0400 Subject: [PATCH] fix(deps): restore paru install gated on pacman presence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Arch-based systems (pacman present), paru-build offers yay or makepkg as install methods. On non-Arch systems neither pacman nor yay exist, so no methods are built and the dep is silently skipped — no prompt shown to the user. --- functions/_fish_deps_catalog.fish | 2 +- functions/_fish_deps_install.fish | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/functions/_fish_deps_catalog.fish b/functions/_fish_deps_catalog.fish index 7b639b6..457373f 100644 --- a/functions/_fish_deps_catalog.fish +++ b/functions/_fish_deps_catalog.fish @@ -33,7 +33,7 @@ function _fish_deps_catalog eza lsd bat btop dust duf prettyping most ripgrep lazygit lazydocker trash kitty wezterm set -g _fdc_special \ - "" fisher-bootstrap curl-installer fzf-update "" "" "" \ + "" fisher-bootstrap curl-installer fzf-update "" "" paru-build \ pipx "" \ "" "" "" "" "" "" "" "" "" "" "" "" "" "" end diff --git a/functions/_fish_deps_install.fish b/functions/_fish_deps_install.fish index c34b903..a3bfe2e 100644 --- a/functions/_fish_deps_install.fish +++ b/functions/_fish_deps_install.fish @@ -49,6 +49,16 @@ function _fish_deps_install case curl-installer set -a methods special-curl set -a method_labels "curl installer" + case paru-build + # Only offered on Arch-based systems where pacman is present + if type -q yay + set -a methods special-yay-paru + set -a method_labels "yay -S paru" + end + if type -q pacman + set -a methods special-paru + set -a method_labels "build from AUR (makepkg)" + end case pipx if type -q pipx set -a methods special-pipx @@ -107,6 +117,15 @@ function _fish_deps_install if test "$bin" = starship curl -sS https://starship.rs/install.sh | sh end + case special-yay-paru + yay -S --noconfirm paru + case special-paru + set -l _build_dir (mktemp -d) + git clone https://aur.archlinux.org/paru.git $_build_dir + and pushd $_build_dir + and makepkg -si --noconfirm + and popd + rm -rf $_build_dir case special-pipx pipx install $bin case special-pip