function thefuck-command-line
  env THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $history[1] ^ /dev/null | read fuck
  [ -z $fuck ]; and return
  commandline -r $fuck
end

function thefuck-command-line
  env THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $history[1] 2> /dev/null | read fuck
  [ -z $fuck ]; and return
  commandline -r $fuck
end

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

oh-my-fish/plugin-thefuck