function init -a path --on-event init_git-flow
  for prefix in /usr /usr/local /opt/local
    if test -f $prefix/share/fish/completions/git.fish
      source $prefix/share/fish/completions/git.fish
      break
    end
  end

  if not type -q __fish_git_branches
    echo "Error: git completion not found!" >&2; return 1
  end
end

for prefix in /usr /usr/local /opt/local
  if test -f $prefix/share/fish/completions/git.fish
    source $prefix/share/fish/completions/git.fish
    break
  end
end

if not type -q __fish_git_branches
  echo "Error: git completion not found!" >&2
end

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

oh-my-fish/plugin-git-flow