Hacker News new | past | comments | ask | show | jobs | submit login

I can honestly say that has never once been a problem I have had, and I've had git information in the prompt for over 10 years.

Also how is "enter" less convenient than literally any other command that you'd still have to type and run to get up-to-date information in a command line?




> I can honestly say that has never once been a problem I have had, and I've had git information in the prompt for over 10 years.

What do you mean exactly?

Are you saying it doesn’t get out of date? i.e. you never change the state of the repository outside of your terminal session? I don’t think that’s reflective of how most people work.

Are you saying that it gets out of date but that doesn’t matter? If that’s the case, then it’s a strong hint that the information isn’t as useful as you assume. What’s the point in constantly, repeatedly showing incorrect information?

Are you saying that you work around the problem by hitting enter whenever you want an update? Then aren’t you doing the same thing as your colleagues who you mention struggle with Git? Hitting enter in your case is essentially a shortcut for running `git status` over and over, except you are doing it with literally every command you run instead of only when you need to.

> Also how is "enter" less convenient than literally any other command that you'd still have to type and run to get up-to-date information in a command line?

The issue is the space and attention used by repeatedly showing outdated Git information. Space and attention are at a premium in a terminal window; you can’t just dump all the information available to you in there for free.


> Are you saying it doesn’t get out of date? i.e. you never change the state of the repository outside of your terminal session? I don’t think that’s reflective of how most people work.

That's what I do, I use git directly for trivial stuff and lazygit for more complex stuff, both inside the terminal.

> Space and attention are at a premium in a terminal window; you can’t just dump all the information available to you in there for free.

That's true. I've tried "absolutely nothing except %", "very long and fancy prompts" and the current directory (often aliased), the current git branch and % is what works well for me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: