Show me your and I'll show you mine (terminal prompts with git branches)
27 comments Latest by ed hardy clothing Thu, 11 Mar 2010 07:21:09 GMT
Enjoying the content? Be sure to subscribe to my RSS feed.
27 comments Latest by ed hardy clothing Thu, 11 Mar 2010 07:21:09 GMT
Enjoying the content? Be sure to subscribe to my RSS feed.
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
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.
I need to spice mine up as well.
http://img.skitch.com/20090213-t78dk12×8ay9hy4qjpnd84fxx8.jpg
Sorry for the botched url. This should work…
http://skitch.com/progress0r/brwj8/zsh-prompt
http://img.skitch.com/20090213-papityswarydemjqqy915cbtca.jpg
Mine is sweet and simple.
http://img.skitch.com/20090213-dbfww4r16yscig2hy683we28h8.jpg
PS1=’[ \W$(__git_ps1 ” %s”) ] ‘
Here’s mine:
http://skitch.com/fredjean/brwwe/fjean-defiant-zsh-95×48
Nothing too complicated…
Fred
Link to the image itself:
http://img.skitch.com/20090213-1fwc4fyadqeergxayrhrh48c56.jpg
Fred
I use GiovannyStyle with the cool Consolas font:
http://tempe.st/2009/01/giovannistyle-high-readability-for-your-terminalapp/
This is mine:
http://skitch.com/dfischer/brw4x/terminal-2
http://skitch.com/rmm5t/bric5/prompt-with-git
https://dl.getdropbox.com/u/312568/foo.png
Nothing special ... But works great.
forgot the screenshot..very simple:
http://skitch.com/gravityblast/brsjn/terminal-bash
Here is mine.
http://img27.imageshack.us/img27/4242/picture1jy0.png
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
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
I like mine with a little bit of transparency.
OK, that didn’t work as planned.
Here’s the link http://twitpic.com/1m76r
510 % cd 511 %
(no color, no magic)
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.
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?
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.
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
Bam.
Inconsolata at 18pt, using Ciaran Walsh’s TerminalColours thinger to switch colors to Ubuntu’s default color scheme.
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
This will be a hot post. Thanks for the information.