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 search "$pkg search"
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
# ─< APT/NALA - Debian >────────────────────────────────────────────────
@ -31,7 +32,8 @@ function upin
set update "$pkg update && $pkg upgrade"
set search "$pkg search"
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
if command -v apt-get >/dev/null 2>&1
set pkg "$su apt-get"
@ -39,7 +41,8 @@ function upin
set update "$pkg update && $pkg upgrade"
set search "$pkg search"
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
@ -50,7 +53,8 @@ function upin
set update "$pkg -Syu"
set search "$pkg -Ss"
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
if command -v yay >/dev/null 2>&1
set pkg "yay"
@ -58,7 +62,8 @@ function upin
set update "$pkg -Syu"
set search "$pkg -Ss"
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
if command -v pacman >/dev/null 2>&1
set pkg "$su pacman"
@ -66,7 +71,8 @@ function upin
set update "$pkg -Syu"
set search "$pkg -Ss"
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
@ -79,7 +85,7 @@ function upin
set search "$pkg se"
set remove "$pkg rm"
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 -- "
end
@ -89,10 +95,10 @@ function upin
set install "$pkg add"
set update "$pkg update"
set search "$pkg search"
set ALIASSES "-- Alpine.. right, this fast os is evolving.. --"
set ALIASES "-- Alpine.. right, this fast os is evolving.. --"
end
if test -n "$install"
set -U FISH_INSTALL $install
set -U FISH_INSTALL ${unattendet:=$install}
set vars "install" "update" "search" "remove"
for env in $vars
if not test -z "$env"