tried out a different FISH_INSTALL variable config

This commit is contained in:
PieckA 2024-05-26 11:52:16 +02:00
parent 082c9f30ab
commit 8f47b65f6d

View file

@ -97,8 +97,12 @@ function upin
set search "$pkg search" set search "$pkg search"
set ALIASES "-- Alpine.. right, this fast os is evolving.. --" set ALIASES "-- Alpine.. right, this fast os is evolving.. --"
end end
if set -q unattendet
set -U FISH_INSTALL $unattendet
else
set -U FISH_INSTALL $install
end
if test -n "$install" if test -n "$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"
@ -178,10 +182,10 @@ end
# │ FUNCTION: check fisher plugin dependencies │ # │ FUNCTION: check fisher plugin dependencies │
# ╰────────────────────────────────────────────╯ # ╰────────────────────────────────────────────╯
function dep_fisher function dep_fisher
# ─< Define dependencies for the plugins used by fisher >─────────────────────────────────── # ─< Define dependencies for the plugins used by fisher >───────────────────────────────────
begin begin
set dependencies "fzf" "btop" "fastfetch" "curl" "wget" "cmatrix" set dependencies "fzf" "btop" "fastfetch" "curl" "wget" "cmatrix"
# ─< Check and install dependencies >─────────────────────────────────────────────────────── # ─< Check and install dependencies >───────────────────────────────────────────────────────
for dep in $dependencies for dep in $dependencies
if not command -v $dep >/dev/null 2>&1 if not command -v $dep >/dev/null 2>&1
echo "Dependency $dep is not installed. Installing..." echo "Dependency $dep is not installed. Installing..."