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