tried out a different FISH_INSTALL variable config
This commit is contained in:
parent
082c9f30ab
commit
8f47b65f6d
1 changed files with 10 additions and 6 deletions
|
@ -41,7 +41,7 @@ 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 unattendet "$pkg install --assume-yes"
|
set unattendet "$pkg install --assume-yes"
|
||||||
set ALIASES "-- You're using APT aliases!! --"
|
set ALIASES "-- You're using APT aliases!! --"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -62,7 +62,7 @@ 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 unattendet "$pkg install --no-confirm"
|
set unattendet "$pkg install --no-confirm"
|
||||||
set ALIASES "-- You're using Arch!! - installed helper: yay --"
|
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
|
||||||
|
@ -71,7 +71,7 @@ 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 unattendet "$pkg install --no-confirm"
|
set unattendet "$pkg install --no-confirm"
|
||||||
set ALIASES "-- by the PACMAN - You're using Arch!! --"
|
set ALIASES "-- by the PACMAN - You're using Arch!! --"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -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..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue