From owner-freebsd-git@freebsd.org Fri Dec 4 16:54:05 2015 Return-Path: Delivered-To: freebsd-git@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C8B0A41580 for ; Fri, 4 Dec 2015 16:54:05 +0000 (UTC) (envelope-from r@robakdesign.com) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B60D219C7 for ; Fri, 4 Dec 2015 16:54:03 +0000 (UTC) (envelope-from r@robakdesign.com) Received: by wmeo63 with SMTP id o63so12210942wme.2 for ; Fri, 04 Dec 2015 08:54:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=Y+Mog98F49oP6cbWgNgfn9dgQVkoFOPt3YS1zPGW7TA=; b=nNJlbPg2qSf+SdaKAj3gbP0ZF9u+PKwBHPVg1lS9YyttUbYLdvjZuZoK4GGVBSuSEv VlqQjJaisFZ3Pgi2s7s16RgjHUI4irl+Om69yMX+pVWVwPWwE2xDu/TOE6qmB8sf3zZP onevXzIiNPKFJx4NDKlYvV9+dEFjPo8m5Gi9WrHzvBFIV8tnF2jstEL0tzkGULtthXpA oLc6SwWy7Gg2cubauvELNKAThGwLHOab5tniNv1OVa61OyBPPaPRNa7DgbbQWNpam+/H U7flfWEwiWe/22BwQvnuxMp5njbvR7XGRsSpw54Y+uH/Rlz5z6Xo+T1hdmufJLy3iHIl MQ/w== X-Gm-Message-State: ALoCoQmjYW/P/weUWQgj6kn7Bl9AoAhoVppL6Ud/jhf9oXUzKDBnqey292EV0q/4I0a3U6nwI/yw X-Received: by 10.194.109.169 with SMTP id ht9mr17793946wjb.13.1449238932987; Fri, 04 Dec 2015 06:22:12 -0800 (PST) Received: from [10.0.0.3] (host31-48-191-113.range31-48.btcentralplus.com. [31.48.191.113]) by smtp.gmail.com with ESMTPSA id d66sm3708703wma.21.2015.12.04.06.22.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 06:22:12 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Put working git branch in shell prompt for bash and zsh? From: Bartek Rutkowski In-Reply-To: Date: Fri, 4 Dec 2015 14:22:10 +0000 Cc: freebsd-git@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5794E27D-73D5-4419-9351-52D45A5C7BFF@FreeBSD.org> References: To: Craig Rodrigues X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 16:54:05 -0000 > On 4 Dec 2015, at 14:20, Craig Rodrigues 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