I am going to cheat a little today and go for a simple post. I have some good content coming this weekend. This post will cover the tools I use everyday.
- OS X 10.5.5
- Colloquy
- Safari
- Twitterific
- Textmate
- Skype
- Skitch
- Cord
- Adium
- iTunes
- rsync
- git
- VMWare Fusion
- NetNewsWire
Those are the pretty typical OS X apps one would expect. Just to juice up this
post a bit let me share a bit from my ~/.profile. Thanks to Justin Lilly
who cooked up this gem:
NORMAL='\[\033[00m\]'
BGREEN='\[\033[1;32m\]'
BBLUE='\[\033[1;34m\]'
GREEN='\[\033[0;32m\]'
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1 /';
}
parse_svn_rev() {
svn info 2> /dev/null | grep "Revision" | sed 's/Revision: \(.*\)/r\1 /';
}
export PS1="${BGREEN}\u@\h ${GREEN}\$(parse_git_branch)\$(parse_svn_rev)${BBLUE}[${NORMAL}\w${BBLUE}]\n${BBLUE}$ ${NORMAL}"
This will render your PS1 as:
brian@brosner-osx master [~/Development/twid/twid]
$
Colors won't show, but you get the idea. Also here are some aliases I use:
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gsr='git svn rebase'
alias gho='$(git remote -v | grep github | sed -e "s/.*git\:\/\/\([a-z]\.\)*/\1/" -e "s/\.git$//g" -e "s/.*@\(.*\)$/\1/g" | tr ":" "/" | tr -d "\011" | sed -e "s/^/open http:\/\//g")'
alias delpyc='find . -name "*.pyc" -exec rm -fv {} \;'
alias deljyc='find . -name "*$py.class" -exec rm -v {} \;'
The gho alias was another one from Justin Lilly. I haven't actually used
it a ton, but in theory will open a GitHub repository page for the given
repository you are in.
