From b14b6c9f420511f6e2e338cd4e13e817e8b8dd9d Mon Sep 17 00:00:00 2001 From: Nahor Date: Mon, 15 Dec 2025 20:05:41 -0800 Subject: [PATCH] fish_git_prompt: fix incorrect variable assignment The intent was to create two local variables, not to assign one's name to the other --- share/functions/fish_git_prompt.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_git_prompt.fish b/share/functions/fish_git_prompt.fish index 191670ea8..0d8136158 100644 --- a/share/functions/fish_git_prompt.fish +++ b/share/functions/fish_git_prompt.fish @@ -596,7 +596,9 @@ end function __fish_git_prompt_set_color set -l user_variable_name "$argv[1]" - set -l default default_done + set -l default + set -l default_done + switch (count $argv) case 1 # No defaults given, use prompt color set default $___fish_git_prompt_color