-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git prompt issues in fish 3.0 #181
Comments
It wouldn’t surprise me if it is 3.0. I’ll take a look next week when I’m back to my computer :) |
The Including your home directory is weird, but, based on the two strings, my guess is it's because of |
Didn't know this.
Original is |
I've fiddled around a little bit and after renaming Closing since the issue is resolved. |
it’s still weird that the case is different. i don’t love that the answer is “change your filesystem” :-/ |
I also see the |
what do |
Found a way to easily reproduce the issue:
|
@bobthecow Nice, it does seem to work as before. Thanks! |
Found another issue:
|
@z3ntu thanks, I'll take a look. |
@rousseldenis I'm not sure I understand what issue you're having, other than the vertical lines. |
@bobthecow I recently get a fresh install and everything seems ok. |
I think also another edit: found this bug in the fish repo that fixed that issue fish-shell/fish-shell#5648 |
I am having issues where often the prompt will not show at all until I cd back into the same directory. By this I mean that sometimes I enter a git directory and the git prompt shows as expected. It often does not stay if I cd into a subdirectory (it disappears completely). cd'ing to the root will fix this most of the time, but not always; sometimes I just cannot get the git prompt to show in the root dir at all. Initially I thought the flag for enabling / disabling worktree support affected this, but after some testing it makes no difference. It was all working as expected for me until I did a clean reinstall - previously I was using a fish 2.x version and a much older revison of bobthefish. EDIT: I have just realised that the issues occur when I cd into |
@ben-watt-es yeah, fish 3 changed the way pwd works, so it gets a little weird with case insensitive filesystems. Are you running the latest bobthefish? It should be worked around in 4ccdd7b |
@bobthecow I've had the same issues where And thanks for your hard work! |
All permutations of this should now be resolved. Feel free to re-open if you run into it again :) |
That fixes my use case at least :) What seems to be a bit not-exactly-intuitive behavior is that the prompt shows the "real" (=resolved) parent directory of your current one, so for example doing |
Yeah, I don’t love it, but I didn’t love the alternatives either. When we interact with external services like The other option, which I poked at but didn’t get very far, would be to always refer to things by their internal paths, and do try to map external services’ idea of paths back into what fish things the pwd is. If you wanna take a shot at it, I’d be happy to entertain a pull request :) |
Mine still doesn't work with bobthefish @bobthecow
|
It seems to be related to the |
Could this be related to git or is the output of this correct?
|
The fixes for oh-my-fish#181 and oh-my-fish#191 introduce the use of `pwd -P` for nomalized $PWD but this has display of $HOME as ~ in cases where $HOME contains a symlink. Rather than passing normalized $PWD everywhere, this commit proposes to improve path reoslution for git/hg root directory in the respective functions. This commit addresses oh-my-fish#181 but has not been tested for oh-my-fish#191.
After updating to latest
fish 3.0
the git prompt started to misbehave.>
.Is it my setup being faulty or
3.0
broke something?The text was updated successfully, but these errors were encountered: