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

FreeBSD Manual Pages

  
 
  

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

NAME
       fish_vcs_prompt	- output version control system	information for	use in
       a prompt

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

DESCRIPTION
       The fish_vcs_prompt function displays  information  about  the  current
       version control system (VCS) repository,	if any.

       It calls	out to VCS-specific functions. The currently supported systems
       are:

       o fish_git_prompt

       o fish_hg_prompt

       o fish_svn_prompt

       If a VCS	isn't installed, the respective	function does nothing.

       The svn prompt is disabled by default because it's slow	on  large  svn
       repositories. To	enable it, modify fish_vcs_prompt to uncomment it. See
       funced.

       For more	information, see the documentation for each of	the  functions
       above.

EXAMPLE
       A simple	prompt that displays all known VCS info:

	  function fish_prompt
	      ...
	      set -g __fish_git_prompt_showupstream auto
	      printf '%s %s$' $PWD (fish_vcs_prompt)
	  end

COPYRIGHT
       2019, fish-shell	developers

3.1				 Aug 11, 2020		    FISH_VCS_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_vcs_prompt&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help