zinc icon indicating copy to clipboard operation
zinc copied to clipboard

Put commit hash in the prompt, when in detached mode

Open fniessen opened this issue 5 years ago • 4 comments

Dear Ben,

When in detached mode, could you put the commit hash in the prompt (instead of "heads/master")?

That was like that in PowerLevel9K, and was a time-saver…

Thanks in advance! Best regards, Fabrice

fniessen avatar Jul 15 '19 08:07 fniessen

image

Am I thinking of something else?

robobenklein avatar Jul 15 '19 09:07 robobenklein

That would be it, indeed. Not sure to understand your question "Am I thinking of something else?", though.

FYI, I just do git checkout, not using the --detach option (which I wasn't aware of).

fniessen avatar Jul 15 '19 11:07 fniessen

Hmmm I haven't been able to reproduce this issue, how did yours break?

robobenklein avatar Jul 18 '19 21:07 robobenklein

Hi Ben! Can't reproduce it anymore, in 2 different repos. So, forget about the fact it did not work…

Now, a small wish: it'd be good to have the first 7 figures and no "..." behind them, as I do have in a Git repo which is 10 years old -- where the default hash length is now auto-computed to 8 chars.

If you (can and will) do that, great! Otherwise, you can safely close this issue...

fniessen avatar Jul 24 '19 11:07 fniessen