Date: Fri, 4 Dec 2015 14:22:10 +0000 From: Bartek Rutkowski <robak@FreeBSD.org> To: Craig Rodrigues <rodrigc@FreeBSD.org> Cc: freebsd-git@freebsd.org Subject: Re: Put working git branch in shell prompt for bash and zsh? Message-ID: <5794E27D-73D5-4419-9351-52D45A5C7BFF@FreeBSD.org> In-Reply-To: <CAG=rPVeDkU2v_0Zk_JoMvYzsr1-CQpq45K7Se07KjJSfA=-3Vw@mail.gmail.com> References: <CAG=rPVeDkU2v_0Zk_JoMvYzsr1-CQpq45K7Se07KjJSfA=-3Vw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 4 Dec 2015, at 14:20, Craig Rodrigues <rodrigc@FreeBSD.org> wrote: >=20 > Hi, >=20 > I am heavily using git for my projects these days. > Typically I am working on multiple projects, with > multiple checked out trees. I am also switching > between branches a lot. >=20 > Sometimes because I am working with so many > checked out trees, I lose track of what branch > I am working on. >=20 > Can anyone point me to a "stupid shell trick" > which would put the currently active branch in the > shell prompt? I typically use bash and zsh shells, > so having the trick for those shells would be useful. >=20 > Thank! >=20 Check out 'zprezto' ZSH config framework with 'sorin' theme activated, = you'll love it :) Kind regards, Bartek Rutkowski
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5794E27D-73D5-4419-9351-52D45A5C7BFF>