fish_git_prompt: fix incorrect variable assignment

The intent was to create two local variables, not to assign one's name
to the other
This commit is contained in:
Nahor
2025-12-15 20:05:41 -08:00
committed by Fabian Boehm
parent 8061c41c9b
commit b14b6c9f42

View File

@@ -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