mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
b604321169
The __fish_git_prompt_show_upstream helper function was inadvertently looking at the misnamed variable __fish_git_prompt_show_upstream in some cases, including when implementing the bash.showUpstream override. Fixing the script to use __fish_git_prompt_showupstream triggered an infinite loop because the --on-variable hook does not distinguish between local and global variables. Update the script to set a completely different local variable to __fish_git_prompt_showupstream and to override this local variable for bash.showUpstream. Also update the code that looks at bash.showUpstream to also read bash.showupstream, because the bash script appears to have a bug where it looks for bash.showupstream despite documenting bash.showUpstream. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
tools | ||
config.fish |