Archives by date

You are browsing the site archives by date.

Also, better git macports install

But with XCode 4, who needs it? sudo port install git-core +svn +doc +bash_completion +gitweb

Git bash prompt

This is super useful: export PS1=”\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \”print (%x{git branch 2> /dev/null}.grep(/^\*/).first || ”).gsub(/^\* (.+)$/, ‘(\1) ‘)\”\`\[\033[37m\]$\[\033[00m\] ” Stolen from here: http://asemanfar.com/Current-Git-Branch-in-Bash-Prompt And this is even more useful! This shows the dirty non/dirty state too! function parse_git_dirty { [[ $(git status 2> /dev/null | tail -n1) != “nothing to commit (working directory clean)” […]