Skip to content

Instantly share code, notes, and snippets.

@scotttam
Created November 28, 2011 18:33
Show Gist options
  • Save scotttam/1401441 to your computer and use it in GitHub Desktop.
Save scotttam/1401441 to your computer and use it in GitHub Desktop.
PS1
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(git::\1)/'
}
export PS1="\[\033[00m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\$(parse_git_branch)\[\033[00m\]$\[\033[00m\] "
alias ss='script/rails server'
alias c='script/rails console'
alias start_resque='rake VVERBOSE=1 QUEUE=* environment resque:work --trace'
alias start_ios='cd ~/workspace/katama_server; ruby script/ios_resque_endpoint.rb'
alias start_mongo='cd ~/workspace/mongodb-osx-i386-1.8.2; rm /data/db-master/mongod.lock; bin/mongod --dbpath /data/db-master --master -vvvv'
alias start_mongo_two='cd ~/workspace/mongodb-osx-i386-2.0.1; rm /data/db-master/mongod.lock; bin/mongod --dbpath /data/db-master --master -vvvv'
alias start_mock_maitred='cd ~/workspace/mock_maitred_server; rackup'
alias start_mysql='/usr/local/mysql/bin/mysqld &'
alias mongo='cd ~/workspace/mongodb-osx-i386-2.0.1/bin; ./mongo'
alias to_gems='cd ~/.rvm/gems/ruby-1.9.2-p136@katama_server/gems'
alias to_mongo='cd ~/workspace/mongodb-osx-i386-1.8.2'
alias uninstall_all_gems='gem list | cut -d" " -f1 | grep -v rake | grep -v rubygems-update | xargs gem uninstall -aIx'
alias flush_dns='dscacheutil -flushcache'
alias server='cd ~/workspace/katama_server'
alias runtime='cd ~/workspace/katama_runtime'
alias qa_servers='cd ~/workspace/ruby_aws_tools; ruby scripts/status.rb --env qa'
alias prod_servers='cd ~/workspace/ruby_aws_tools; ruby scripts/status.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment