![]() |
![]()
| ![]() |
![]()
NAMEfish_hg_prompt - output Mercurial information for use in a prompt SYNOPSISfish_hg_prompt function fish_prompt DESCRIPTIONThe fish_hg_prompt function displays information about the current Mercurial repository, if any. Mercurial <https://www.mercurial-scm.org/> (hg) must be installed. By default, only the current branch is shown because hg status can be slow on a large repository. You can enable a more informative prompt by setting the variable $fish_prompt_hg_show_informative_status, for example: set --universal fish_prompt_hg_show_informative_status If you enabled the informative status, there are numerous customization options, which can be controlled with fish variables.
Some colors for status symbols:
The status symbols themselves:
Finally, $fish_prompt_hg_status_order, which can be used to change the order the status symbols appear in. It defaults to added modified copied deleted untracked unmerged. See also fish_vcs_prompt, which will call all supported version control prompt functions, including git, Mercurial and Subversion. EXAMPLEA simple prompt that displays hg info: function fish_prompt COPYRIGHT2024, fish-shell developers
|