diff --git a/doc_src/fish_git_prompt.txt b/doc_src/fish_git_prompt.txt index 929a1b8f4..a4867d7c5 100644 --- a/doc_src/fish_git_prompt.txt +++ b/doc_src/fish_git_prompt.txt @@ -77,7 +77,7 @@ Colors used with their respective flags enabled: Note that all colors can also have a corresponding "_done" color. E.g. $__fish_git_prompt_color_upstream_done, used right _after_ the upstream. -See also __fish_vcs_prompt, which will call all supported vcs-prompt functions, including git, hg and svn. +See also fish_vcs_prompt, which will call all supported vcs-prompt functions, including git, hg and svn. \subsection fish_git_prompt-example Example diff --git a/share/functions/__fish_vcs_prompt.fish b/share/functions/__fish_vcs_prompt.fish index 8b6cf307f..552fcd3f6 100644 --- a/share/functions/__fish_vcs_prompt.fish +++ b/share/functions/__fish_vcs_prompt.fish @@ -1,5 +1,3 @@ function __fish_vcs_prompt --description "Print the prompts for all available vcsen" - fish_git_prompt - __fish_hg_prompt - __fish_svn_prompt + fish_vcs_prompt end diff --git a/share/functions/fish_vcs_prompt.fish b/share/functions/fish_vcs_prompt.fish new file mode 100644 index 000000000..b81ef1358 --- /dev/null +++ b/share/functions/fish_vcs_prompt.fish @@ -0,0 +1,5 @@ +function fish_vcs_prompt --description "Print the prompts for all available vcsen" + fish_git_prompt + __fish_hg_prompt + __fish_svn_prompt +end