25 lines
435 B
Fish
25 lines
435 B
Fish
function update
|
|
switch (uname)
|
|
case Linux
|
|
if type -q yay
|
|
yay
|
|
end
|
|
|
|
if type -q flatpak
|
|
flatpak update
|
|
end
|
|
case Darwin
|
|
brew upgrade
|
|
case '*'
|
|
echo "Unsupported OS"
|
|
exit 1
|
|
end
|
|
|
|
if type -q gup
|
|
gup update
|
|
end
|
|
|
|
if type -q cargo
|
|
cargo install-update --all
|
|
end
|
|
end
|