fixed some bugs
This commit is contained in:
parent
1ae12fb6a9
commit
39f0c2f4fe
2 changed files with 12 additions and 10 deletions
11
functions/set_alias.fish
Normal file
11
functions/set_alias.fish
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue