All blog posts tagged with zsh

ZSH Prompt to show git branch

February 15, 2008

After using git for a little bit I started tinkering with ZSH, to get the current branch in my prompt. What I ended up with is this:

Turns out it's pretty easy - somewhere in your .zshrc you need to put the following:

# get the name of the branch we are on
git_prompt_info() {
  ref=$(git-symbolic-…

Read more

Displaying 1 post

About

I'm a programmer and shutterbug living on the West Coast of Canada.

Blog Archive

Recently Heard

Whisky & Green Teaby SupergrassPlayed on 2008/11/18 at 10:27AM
No Sant (Flytronix Mix) (feat. Lena Fiagbe)by Wasis DiopPlayed on 2008/11/18 at 10:21AM
Imperial Hippyby Transglobal UndergroundPlayed on 2008/11/18 at 10:20AM
Powered by Viviti