Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created November 3, 2008 00:12
Show Gist options
  • Select an option

  • Save jackdempsey/21772 to your computer and use it in GitHub Desktop.

Select an option

Save jackdempsey/21772 to your computer and use it in GitHub Desktop.
alias clean_gems='for i in `gem list merb | cut -f1 -d" " | grep merb | xargs`; do sudo gem cleanup $i --quiet; done'
alias up='[ -d .svn ] && svn up || (git fetch && git rebase origin/master)'
alias rmt="find . -name '*~' -exec rm {} \;"
export PS1='\w `git-branch 2>&1 | grep "*" | awk -F" " "{print \\\$2}"`\$ '
source ~/bin/cdargs-bash.sh # located at http://gist.github.com/21769
source ~/bin/git-completion.bash # located at http://gist.github.com/21770
complete -o default -o nospace -F _git_checkout gco
complete -o default -o nospace -F _git_branch gb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment