function init --on-event init_thefuck
  if type -q thefuck
    set -q __tf_func; or __tf_updt
    eval $__tf_func
  else
    echo "Please install thefuck first. Check https://github.com/nvbn/thefuck"
  end
end

if type -q thefuck
  set -q __tf_func; or __tf_updt
  eval $__tf_func
else
  echo "Please install thefuck first. Check https://github.com/nvbn/thefuck"
end

Initialize immediately, rather than waiting for an event.
Initialize immediately, rather than waiting for an event.

oh-my-fish/plugin-thefuck