From: Jay Soffian Date: Wed, 17 Mar 2010 15:14:44 GMT Subject: Re: git branch --current? Message-ID: <76718491003170814v71e31e91q994daee849da4caf@mail.gmail.com> In-Reply-To: On Wed, Mar 17, 2010 at 11:04 AM, Nguyen Thai Ngoc Duy wrote: > Hmm.. I have alias.pwb = symbolic-ref HEAD. Both solutions are not as > good as "git branch", say detached HEAD case. How about naming something like this git-pwb and copying it to somewhere in PATH: #!/bin/sh . /opt/git/share/git-core/git-completion.bash echo $(__git_ps1) Perhaps you are inspired to contribute git-completion.csh? :-) j.