which abs ^ /dev/null > /dev/null
if test $status -ne 1
  function pacupd -d "Update and refresh the local package and ABS databases against repositories"
    sudo pacman -Sy; and sudo abs
  end
else
  function pacupd -d "Update and refresh the local package against repositories"
    sudo pacman -Sy
  end
end

which abs 2> /dev/null > /dev/null
if test $status -ne 1
  function pacupd -d "Update and refresh the local package and ABS databases against repositories"
    sudo pacman -Sy; and sudo abs
  end
else
  function pacupd -d "Update and refresh the local package against repositories"
    sudo pacman -Sy
  end
end

Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.

oh-my-fish/plugin-archlinux