News for hackers. Stuff that matters.
Re:Hacking the Git Shell Prompt by mjd on Sunday February 07, 2021 @09:19AM (#26055171)
tl;dr
Re:Hacking the Git Shell Prompt by gruez on Sunday February 07, 2021 @09:54AM (#26055400)
I was going to downvote this but after skimming the article I'm inclined to agree. There's no intro/conclusion summarizing what the post is about, and without them the body is just a stream of consciousness that's hard to follow and unengaging.
Re:Hacking the Git Shell Prompt by loloquwowndueo on Sunday February 07, 2021 @10:21AM (#26055591)
There is a conclusion at the end if you bother to scroll down ;)
Re:Hacking the Git Shell Prompt by rgoulter on Sunday February 07, 2021 @11:22AM (#26055989)
The author likes using long branch names, except for that this makes their prompt look ugly.

One workaround they've used is to use a shorter branch name locally which tracks the longer remote branch name.

This blogpost shows details about looking into abbreviating the branch name in the shell code for the git part of the prompt. The author found a way to do it by making use of a particular colorising hook.

Re:Hacking the Git Shell Prompt by chrisweekly on Sunday February 07, 2021 @10:21AM (#26055588)
TLDR "Some first-draft-quality notes on incorporating git-related info into the shell prompt"
Re:Hacking the Git Shell Prompt by 0zymandiass on Sunday February 07, 2021 @10:44AM (#26055738)
It's far less interesting than finding an exploit in git-shell, which was how I read the headline :|
Re:Hacking the Git Shell Prompt by chrisweekly on Sunday February 07, 2021 @11:42AM (#26056141)
yeah. that's why I posted the (sadly, downvoted) tldr you responded to: trying to help others avoid wasting time on the OP.