-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Directory not recognized as git when automatically restoring paths #157
Comments
Hey @itay-grudev ! Thanks for reaching out. Can you expand on automatically restoring terminal's path (using a plugin)? what would be the repro steps with that? I have not reproduced the bug using |
@reobin Can you reproduce it with the following config. Maybe it's related to that: typewritten_custom_right_prompt_prefix() {
echo
}
export TYPEWRITTEN_RIGHT_PROMPT_PREFIX_FUNCTION=typewritten_custom_right_prompt_prefix In my case when I use a prefix function sometimes the git information loads, some times it doesn't. Take a look at the screenshot below - all I am doing is pressing RETURN. |
I was not able to reproduce the behaviour you're getting :/ Instead of pressing enter repeatedly, could you try to run this command instead everytime? (the line that's used to get the branch name) command git symbolic-ref --short -q HEAD |
The moment I type that in - the information gets loaded. Here is a video. Screencast.from.2023-04-05.13-02-12.webm |
Describe the bug
When my terminal is automatically restoring its path (using the
last-working-dir
plugin for example, none of the git information is displayed.I also found another way to reproduce the issue - by making your home directory a git repository.
If you
cd
out and then back into the current directory everything works correctly, but not when you're already in it by default.To Reproduce
Steps to reproduce the behavior:
cd $HOME && git init
Expected behavior
I expect to see a git branch and a git status indicator.
The text was updated successfully, but these errors were encountered: