feat(deps): add fish-deps unified dependency management command #17

Merged
rootiest merged 21 commits from feat/fish-deps into main 2026-05-19 03:53:52 +00:00
2 changed files with 12 additions and 2 deletions
Showing only changes of commit b82766ad52 - Show all commits
+7 -1
View File
@@ -45,9 +45,13 @@ function _fish_deps_install
set -a method_labels "curl installer" set -a method_labels "curl installer"
case paru-build case paru-build
# Only useful on Arch; skip if pacman not present # Only useful on Arch; skip if pacman not present
if type -q yay
set -a methods special-yay-paru
set -a method_labels "yay -S paru"
end
if type -q pacman if type -q pacman
set -a methods special-paru set -a methods special-paru
set -a method_labels "build from AUR (paru)" set -a method_labels "build from AUR (makepkg)"
end end
case pipx case pipx
if type -q pipx if type -q pipx
@@ -106,6 +110,8 @@ function _fish_deps_install
if test "$bin" = starship if test "$bin" = starship
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
end end
case special-yay-paru
yay -S --noconfirm paru
case special-paru case special-paru
set -l _build_dir (mktemp -d) set -l _build_dir (mktemp -d)
git clone https://aur.archlinux.org/paru.git $_build_dir git clone https://aur.archlinux.org/paru.git $_build_dir
+5 -1
View File
@@ -3,7 +3,7 @@
# Detect the first available system package manager. # Detect the first available system package manager.
function _fish_deps_detect_pm function _fish_deps_detect_pm
for pm in paru pacman apt brew pkg dnf yum for pm in paru yay pacman apt brew pkg dnf yum
if type -q $pm if type -q $pm
echo $pm echo $pm
return return
@@ -23,6 +23,8 @@ function _fish_deps_pm_install --argument-names pkg
switch $pm switch $pm
case paru case paru
paru -S --noconfirm $pkg paru -S --noconfirm $pkg
case yay
yay -S --noconfirm $pkg
case pacman case pacman
sudo pacman -S --noconfirm $pkg sudo pacman -S --noconfirm $pkg
case apt case apt
@@ -49,6 +51,8 @@ function _fish_deps_pm_upgrade --argument-names pkg
switch $pm switch $pm
case paru case paru
paru -S --noconfirm $pkg paru -S --noconfirm $pkg
case yay
yay -S --noconfirm $pkg
case pacman case pacman
sudo pacman -S --noconfirm $pkg sudo pacman -S --noconfirm $pkg
case apt case apt