You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I look at funced _tide_item_git_prompt and see that it calls fish_git_prompt (in share/fish/functions/fish_git_prompt.fish), which tells me:
# In addition, if you set __fish_git_prompt_showdirtystate to a nonempty value,
# unstaged (*) and staged (+) changes will be shown next to the branch name.
# You can configure this per-repository with the bash.showDirtyState variable,
# which defaults to true once __fish_git_prompt_showdirtystate is enabled. The
# choice to leave the variable as 'bash' instead of renaming to 'fish' is done
# to preserve compatibility with existing configured repositories.
I have set both
set __fish_git_prompt_showdirtystate 1
set __bash_git_prompt_showdirtystate 1
But dirty files are still not marked with a * when I’m in a git repo. What’s the trick to enable this?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This is in fact a "bug" though not in the code.
I was misled when creating the Pure style because Pure does a strange thing in that it indicates either the staged state or dirty state with a single * character:
~/clownfish master
❯ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
~/clownfish master
❯ touch blah.rs # Doesn't effect prompt
~/clownfish master
❯ git add blah.rs # Stages a file, activating * in prompt
~/clownfish master*
❯ git restore --staged blah.rs # Unstaged file, removes * in prompt
~/clownfish master
❯ echo foo >> README.md # Makes a file dirty, thus producing a * in prompt
~/clownfish master*
❯ git add blah.rs # Stages blah.rs, but doesn't activate a second *
~/clownfish master*
❯
fish_git_prompt won't let you do this because it separates the staged and dirty states. Pure style will now indicate both states with the * character, but there will be 2 *s when both are true.
I look at
funced _tide_item_git_prompt
and see that it callsfish_git_prompt
(inshare/fish/functions/fish_git_prompt.fish
), which tells me:I have set both
But dirty files are still not marked with a
*
when I’m in a git repo. What’s the trick to enable this?The text was updated successfully, but these errors were encountered: