sample_prompts/robbyrussell: Use fish_print_hg_root

This removes ~140ms from every single prompt.

When not in a git repo, this prompt now takes ~9ms, as opposed to
~150ms before.

Fixes #5266 harder.

[ci skip]
This commit is contained in:
Fabian Homborg
2018-11-30 20:58:34 +01:00
parent 176c84fb9f
commit c242d923c9

View File

@@ -34,9 +34,7 @@ function fish_prompt
end
function _is_hg_repo
type -q hg
or return 1
hg summary >/dev/null 2>/dev/null
fish_print_hg_root >/dev/null
end
function _repo_branch_name