Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2015 04:55:47 -0800
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Bartek Rutkowski <robak@freebsd.org>
Cc:        freebsd-git@freebsd.org
Subject:   Re: Put working git branch in shell prompt for bash and zsh?
Message-ID:  <CAG=rPVcsWFP06mqxiA6RFwOkLAq7y7YSJsbXd3wLYZ74=W%2B5CA@mail.gmail.com>
In-Reply-To: <CAG=rPVe8kFUZtEtHrna886hwuChhkV-dPYVeXRmNtaPA=d6mGQ@mail.gmail.com>
References:  <CAG=rPVeDkU2v_0Zk_JoMvYzsr1-CQpq45K7Se07KjJSfA=-3Vw@mail.gmail.com> <5794E27D-73D5-4419-9351-52D45A5C7BFF@FreeBSD.org> <CAG=rPVe8kFUZtEtHrna886hwuChhkV-dPYVeXRmNtaPA=d6mGQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bartek,

Here are some further cool things I found from the minimal prompt
in zprezto:

GIT
===
(1)  If  a workspace has a modified file, which hasn't been checked in,
that
       an orange circle appears in the prompt.

(2)  If a workspace has file that hasn't been added with 'git add',
       a red circle appears in the prompt.

(3)  If a workspace is in the middle of a 'git rebase', then 'rebase'
appears in the prompt.

(4)  If a workspace is in the middle of a 'git cherry-pick', then 'cherry'
appears in the prompt.

SVN
====
(1)  If you cd into a Subversion workspace, the branch and revision number
are reflected
       in the prompt:

============================
~ >> cd /usr/bin
/usr/bin >> pwd
/usr/bin
/usr/bin >> cd /usr/src
/usr/src - [10|291085] >> pwd
/usr/src
============================

I am sure I can cutomize things more to get the prompt exactly as
I like it, but that is amazing functionality out of the box.
I love it!

--
Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVcsWFP06mqxiA6RFwOkLAq7y7YSJsbXd3wLYZ74=W%2B5CA>