Read my latest article: Planet Argon Blog (posted Wed, 17 Feb 2010 15:11:00 GMT)

Show me your and I'll show you mine (terminal prompts with git branches)

Posted by Robby Russell Fri, 13 Feb 2009 18:57:00 GMT

27 comments Latest by ed hardy clothing Thu, 11 Mar 2010 07:21:09 GMT

I asked on twitter but only got a small handful of responses. So, I’m taking it here.

Show me yours and I’ll show you mine. Your terminal prompt that you’re using. Inspire me with new ideas for my prompt.

Here is mine.

zsh colors

Now… show me yours.

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    Eric Davis Fri, 13 Feb 2009 19:10:54 GMT

    I’m using the default Debian Bash colors with git as a dark blue. I don’t need to know my branch that often as Emacs tells me already. I mostly use it on my terminal when I’m rebasing or merging (“no-branch”).

    http://dropbox.theadmin.org/git-term.png

  2. Avatar
    Luke Redpath Fri, 13 Feb 2009 19:17:21 GMT

    Repost from twitter:

    http://img.skitch.com/20090213-pkxjhyb82kfint9w6pnd6gkyea.jpg

    Don’t know who did this originally but the script was given to me by James Adam. You can get the source from my dotfiles.

    The lightning bolt signifies pending changes, and the arrow/dollar are red/green depending on the result of the last run command (was it successful). Obviously thats the current branch in yellow.

  3. Avatar
    abstractryan@gmail.com Fri, 13 Feb 2009 20:40:31 GMT

    I need to spice mine up as well.

    http://img.skitch.com/20090213-t78dk12×8ay9hy4qjpnd84fxx8.jpg

  4. Avatar
    Ryan Richards Fri, 13 Feb 2009 20:43:59 GMT

    Sorry for the botched url. This should work…

    http://skitch.com/progress0r/brwj8/zsh-prompt

  5. Avatar
    Steve A Fri, 13 Feb 2009 20:51:35 GMT
  6. Avatar
    Ryan Smith Fri, 13 Feb 2009 21:19:24 GMT

    Mine is sweet and simple.

    http://img.skitch.com/20090213-dbfww4r16yscig2hy683we28h8.jpg

    PS1=’[ \W$(__git_ps1 ” %s”) ] ‘

  7. Avatar
    Frederic Jean Fri, 13 Feb 2009 21:56:38 GMT

    Here’s mine:

    http://skitch.com/fredjean/brwwe/fjean-defiant-zsh-95×48

    Nothing too complicated…

    Fred

  8. Avatar
    Frederic Jean Fri, 13 Feb 2009 21:58:17 GMT
  9. Avatar
    Andrea Franz Fri, 13 Feb 2009 22:03:09 GMT

    I use GiovannyStyle with the cool Consolas font:

    http://tempe.st/2009/01/giovannistyle-high-readability-for-your-terminalapp/

  10. Avatar
    Daniel Fischer Fri, 13 Feb 2009 22:45:24 GMT
  11. Avatar
    Ryan McGeary Sat, 14 Feb 2009 02:25:48 GMT
  12. Avatar
    Alex Sat, 14 Feb 2009 03:09:40 GMT
  13. Avatar
    Mislav Sat, 14 Feb 2009 12:06:32 GMT

    Nothing special ... But works great.

  14. Avatar
    Andrea Franz Sat, 14 Feb 2009 13:18:39 GMT

    forgot the screenshot..very simple:

    http://skitch.com/gravityblast/brsjn/terminal-bash

  15. Avatar
    Thomaz Leite Sun, 15 Feb 2009 00:08:18 GMT
  16. Avatar
    Tuxie Mon, 16 Feb 2009 10:00:34 GMT

    I made a zsh prompt like this about 1,5 years ago and I still use it. :)

    I guess I’ll have to show mine now that you showed me yours…

    http://img87.imageshack.us/my.php?image=gitpromptxk3.png

  17. Avatar
    Peter Cooper Sat, 21 Feb 2009 16:30:27 GMT

    Magenta and blue with full path:

    http://skitch.com/petercooper/bfx91/default

    Using prompt string:

    PS1=’[\t $(tput setaf 6)\w$(tput sgr0)$(__git_ps1 ” ($(tput setaf 5)%s$(tput sgr0))”)]\$ ‘

    Coupled with http://github.com/git/git/blob/master/contrib/completion/git-completion.bash

  18. Avatar
    Srdjan Pejic Sat, 21 Feb 2009 21:09:38 GMT

    I like mine with a little bit of transparency.

  19. Avatar
    Srdjan Pejic Sat, 21 Feb 2009 21:11:26 GMT

    OK, that didn’t work as planned.

    Here’s the link http://twitpic.com/1m76r

  20. Avatar
    Ryan Davis Fri, 06 Mar 2009 03:17:06 GMT

    510 % cd 511 %

    (no color, no magic)

  21. Avatar
    Nathaniel Brown Fri, 06 Mar 2009 18:55:51 GMT

    So I decided to move to zsh instead of tcsh and well.. the PS1 prompt doesn’t seem to work very well at all. The characters mentioned above don’t seem to parse at all.

    I have a super simple prompt..

    PS1=’[t] ‘

    Yet it shows the character “t” instead of the time. Any ideas?

    Obviously the git functions don’t work either, but I figure it’s linked to not parsing the prompt at all.

  22. Avatar
    Nathaniel Brown Fri, 06 Mar 2009 19:56:47 GMT

    well that would be why.. some of the prompt examples above are for bash not zsh. I like peter’s prompt the best.. any ideas how to make it zsh friendly?

  23. Avatar
    Ehren Murdick Wed, 27 May 2009 13:48:51 GMT

    http://img.skitch.com/20090527-qx1wihtgms6c8a6mrbpb4hcwpn.jpg

    Teal on the left is working directory, purple is the name of the project I’m in, (determined with $HOME/projects/(project_name)/*) The yellow is the current git branch name. The gray asterisk means my working copy is dirty, ie there are un-checked-in changes, and the lightning bolt means I have a local commit that I have not pushed to origin.

  24. Avatar
    Ehren Murdick Wed, 27 May 2009 13:51:16 GMT

    I forgot to mention, I’m on zsh and all my config stuff is in a public repo on github: http://github.com/ehrenmurdick/config/tree/master

  25. Avatar
    Ben Bleything Thu, 04 Jun 2009 18:37:56 GMT

    Bam.

    Inconsolata at 18pt, using Ciaran Walsh’s TerminalColours thinger to switch colors to Ubuntu’s default color scheme.

  26. Avatar
    susan Wed, 10 Feb 2010 13:01:56 GMT

    The UGG Australia story began in discount ugg cardy boots 1978 when a surfer by the name of Brian Smith needed a way to keep his feet warm between waves and the UGG Classic was born. discount ugg boots Crafted from Merino grade A sheepskin, the classic surf boot is lightweight and perfect for walking on sand. discount ugg cardy boots The idea caught on and today UGG? boots have become a phenomenon

  27. Avatar
    ed hardy clothing Thu, 11 Mar 2010 07:21:09 GMT

    This will be a hot post. Thanks for the information.

Share your thoughts... (really...I want to hear them)

Comments