Here's an equivalent "alias" for the fish shell:
function fuck
eval (thefuck (history | head -n1))
end function fuck
eval (thefuck (history | head -n1))
end