Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FISH_HG_PROMPT(1)		  fish-shell		     FISH_HG_PROMPT(1)

NAME
       fish_hg_prompt -	output Mercurial information for use in	a prompt

SYNOPSIS
	  function fish_prompt
	       echo -n (pwd)(fish_hg_prompt) '$	'
	  end

DESCRIPTION
       The fish_hg_prompt function displays information	about the current Mer-
       curial repository, if any.

       Mercurial (hg) must be installed.

       By default, only	the current branch is shown because hg status can take
       be  slow	 on 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.

       o $fish_color_hg_clean,		 $fish_color_hg_modified	   and
	 $fish_color_hg_dirty  are colors used when the	repository has the re-
	 spective status.

       Some colors for status symbols:

       o $fish_color_hg_added

       o $fish_color_hg_renamed

       o $fish_color_hg_copied

       o $fish_color_hg_deleted

       o $fish_color_hg_untracked

       o $fish_color_hg_unmerged

       The status symbols themselves:

       o $fish_prompt_hg_status_added, default 'a'

       o $fish_prompt_hg_status_modified, default '*'

       o $fish_prompt_hg_status_copied,	default	'a'

       o $fish_prompt_hg_status_deleted, default 'a'

       o $fish_prompt_hg_status_untracked, default '?'

       o $fish_prompt_hg_status_unmerged, default '!'

       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.

EXAMPLE
       A simple	prompt that displays hg	info:

	  function fish_prompt
	      ...
	      set -g fish_prompt_hg_show_informative_status
	      printf '%s %s$' $PWD (fish_hg_prompt)
	  end

COPYRIGHT
       2019, fish-shell	developers

3.1				 Aug 11, 2020		     FISH_HG_PROMPT(1)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fish_hg_prompt&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help