mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user