mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user