From c77133492434592bb07c6b15cae56e7c097c16aa Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 9 Feb 2019 15:43:05 +0100 Subject: [PATCH] Rename __fish_vcs_prompt -> fish_vcs_prompt Still keep a stub under the old name for compatibility. --- doc_src/fish_git_prompt.txt | 2 +- share/functions/__fish_vcs_prompt.fish | 4 +--- share/functions/fish_vcs_prompt.fish | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 share/functions/fish_vcs_prompt.fish 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