From 7b9119cc9a4dd20eed5ddcacd272327f329683f2 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 24 May 2020 02:29:40 +0900 Subject: [PATCH] fish_vcs_prompt: allow argv passthrough fish_git_prompt encloses its output in brackets, however this can be changed by supplying a format string to it, i.e. `fish_git_prompt %s`. However when using `fish_vcs_prompt` there's no way to pass on the arg to fish_git_prompt, so you need to manually remove it. fish_hg_prompt doesn't have the same format string support as fish_git_prompt, but I suppose it could be added later if needed. --- share/functions/fish_vcs_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/fish_vcs_prompt.fish b/share/functions/fish_vcs_prompt.fish index d0deef7c2..ed2d90725 100644 --- a/share/functions/fish_vcs_prompt.fish +++ b/share/functions/fish_vcs_prompt.fish @@ -1,8 +1,8 @@ function fish_vcs_prompt --description "Print the prompts for all available vcsen" # If a prompt succeeded, we assume that it's printed the correct info. # This is so we don't try svn if git already worked. - fish_git_prompt - or fish_hg_prompt + fish_git_prompt $argv + or fish_hg_prompt $argv # The svn prompt is disabled by default because it's quite slow on common svn repositories. # To enable it uncomment it. # You can also only use it in specific directories by checking $PWD.