fixed some bugs

This commit is contained in:
PieckA 2024-05-25 15:09:24 +02:00
parent 1ae12fb6a9
commit 39f0c2f4fe
2 changed files with 12 additions and 10 deletions

11
functions/set_alias.fish Normal file
View file

@ -0,0 +1,11 @@
function set_alias
# ─< set variables to aliasses >────────────────────────────────────────────────────────────
if upin
set vars "install" "update" "search" "remove"
for env in $vars
if not test -z "$env"
alias "$env"="$$env"
end
end
end
end

View file

@ -89,15 +89,6 @@ if command -v apk >/dev/null 2>&1
end end
end end
function set_alias if test -n "$install"
# ─< set variables to aliasses >────────────────────────────────────────────────────────────
set vars "install" "update" "search" "remove"
for env in $vars
if not test -z "$env"
alias "$env"="$$env"
end
end
set FISH_INSTALL "$install" set FISH_INSTALL "$install"
end end