function vcs.dirty
  command hg summary 2>/dev/null | command grep -q 'commit: (clean)' ^/dev/null
end

function vcs.dirty
  command hg summary 2> /dev/null | command grep -q 'commit: (clean)' 2> /dev/null
end

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

oh-my-fish/plugin-vcs