From 56b3b27206cfd9e4ddbea10c9d7250f2851ded4e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 16 Apr 2021 18:54:56 +0200 Subject: [PATCH] Fix format string The terlar prompt uses `|branch`, this is visually quite important. --- share/functions/__terlar_git_prompt.fish | 2 +- share/tools/web_config/sample_prompts/terlar.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/__terlar_git_prompt.fish b/share/functions/__terlar_git_prompt.fish index 2a82afc4e..1cec1eafc 100644 --- a/share/functions/__terlar_git_prompt.fish +++ b/share/functions/__terlar_git_prompt.fish @@ -34,5 +34,5 @@ function __terlar_git_prompt --description 'Write out the git prompt' set -q __fish_git_prompt_char_stateseparator or set -g __fish_git_prompt_char_stateseparator '⚡' - fish_git_prompt $argv + fish_git_prompt '|%s' end diff --git a/share/tools/web_config/sample_prompts/terlar.fish b/share/tools/web_config/sample_prompts/terlar.fish index d3f319b7f..88cd3670c 100644 --- a/share/tools/web_config/sample_prompts/terlar.fish +++ b/share/tools/web_config/sample_prompts/terlar.fish @@ -47,7 +47,7 @@ function fish_prompt --description 'Write out the prompt' or set -g __fish_git_prompt_color_branch green set -q __fish_git_prompt_char_stateseparator or set -g __fish_git_prompt_char_stateseparator '⚡' - fish_vcs_prompt + fish_vcs_prompt '|%s' echo if not test $last_status -eq 0