tried out a different FISH_INSTALL variable config

This commit is contained in:
PieckA 2024-05-26 11:49:17 +02:00
parent 03524f162a
commit 082c9f30ab

View file

@ -21,7 +21,8 @@ function upin
set update "$pkg update && $pkg upgrade" set update "$pkg update && $pkg upgrade"
set search "$pkg search" set search "$pkg search"
set remove "$pkg remove" set remove "$pkg remove"
set -a ALIASSES "-- You're using DNF aliases!! --" set unattendet "$pkg install -y"
set -a ALIASES "-- You're using DNF aliases!! --"
end end
# ─< APT/NALA - Debian >──────────────────────────────────────────────── # ─< APT/NALA - Debian >────────────────────────────────────────────────
@ -31,7 +32,8 @@ function upin
set update "$pkg update && $pkg upgrade" set update "$pkg update && $pkg upgrade"
set search "$pkg search" set search "$pkg search"
set remove "$pkg remove" set remove "$pkg remove"
set ALIASSES "-- You're using NALA aliases!! --" set unattendet "$pkg install --assume-yes"
set ALIASES "-- You're using NALA aliases!! --"
else else
if command -v apt-get >/dev/null 2>&1 if command -v apt-get >/dev/null 2>&1
set pkg "$su apt-get" set pkg "$su apt-get"
@ -39,7 +41,8 @@ function upin
set update "$pkg update && $pkg upgrade" set update "$pkg update && $pkg upgrade"
set search "$pkg search" set search "$pkg search"
set remove "$pkg remove" set remove "$pkg remove"
set ALIASSES "-- You're using APT aliases!! --" set unattendet "$pkg install --assume-yes"
set ALIASES "-- You're using APT aliases!! --"
end end
end end
@ -50,7 +53,8 @@ function upin
set update "$pkg -Syu" set update "$pkg -Syu"
set search "$pkg -Ss" set search "$pkg -Ss"
set remove "$pkg -R" set remove "$pkg -R"
set ALIASSES "-- You're using Arch!! - installed helper: paru --" set unattendet "$pkg install --no-confirm"
set ALIASES "-- You're using Arch!! - installed helper: paru --"
else else
if command -v yay >/dev/null 2>&1 if command -v yay >/dev/null 2>&1
set pkg "yay" set pkg "yay"
@ -58,7 +62,8 @@ function upin
set update "$pkg -Syu" set update "$pkg -Syu"
set search "$pkg -Ss" set search "$pkg -Ss"
set remove "$pkg -R" set remove "$pkg -R"
set ALIASSES "-- You're using Arch!! - installed helper: yay --" set unattendet "$pkg install --no-confirm"
set ALIASES "-- You're using Arch!! - installed helper: yay --"
else else
if command -v pacman >/dev/null 2>&1 if command -v pacman >/dev/null 2>&1
set pkg "$su pacman" set pkg "$su pacman"
@ -66,7 +71,8 @@ function upin
set update "$pkg -Syu" set update "$pkg -Syu"
set search "$pkg -Ss" set search "$pkg -Ss"
set remove "$pkg -R" set remove "$pkg -R"
set ALIASSES "-- by the PACMAN - You're using Arch!! --" set unattendet "$pkg install --no-confirm"
set ALIASES "-- by the PACMAN - You're using Arch!! --"
end end
end end
end end
@ -79,7 +85,7 @@ function upin
set search "$pkg se" set search "$pkg se"
set remove "$pkg rm" set remove "$pkg rm"
alias lock="$pkg al" alias lock="$pkg al"
set ALIASSES "-- I see.. you're using OpenSUSE. i like <3 -- set ALIASES "-- I see.. you're using OpenSUSE. i like <3 --
-- ZYPPER -- " -- ZYPPER -- "
end end
@ -89,10 +95,10 @@ function upin
set install "$pkg add" set install "$pkg add"
set update "$pkg update" set update "$pkg update"
set search "$pkg search" set search "$pkg search"
set ALIASSES "-- Alpine.. right, this fast os is evolving.. --" set ALIASES "-- Alpine.. right, this fast os is evolving.. --"
end end
if test -n "$install" if test -n "$install"
set -U FISH_INSTALL $install set -U FISH_INSTALL ${unattendet:=$install}
set vars "install" "update" "search" "remove" set vars "install" "update" "search" "remove"
for env in $vars for env in $vars
if not test -z "$env" if not test -z "$env"