Skip to content

Instantly share code, notes, and snippets.

@burin
Created September 14, 2008 19:07
Show Gist options
  • Save burin/10752 to your computer and use it in GitHub Desktop.
Save burin/10752 to your computer and use it in GitHub Desktop.
My ~/.profile for ruby dev
# environment variables
export PATH=/usr/local/bin:$PATH
export PATH="$HOME/bin:$PATH"
export PATH=/usr/local/git/bin:$PATH
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH=/usr/local/git/man:$MANPATH
export EDITOR="mate -w"
export SVN_EDITOR="mate -w"
# aliases
alias l="ls -hG"
alias ll="ls -alhG"
alias ls="ls -hG"
# make tab cycle through commands instead of listing
bind '"\t":menu-complete'
# Subversion
alias sup='if [[ "`svn st -u db/migrate | grep \"\\.rb\"`" ]]; then svn up; migrate; else echo "No migration necessary :)"; svn up; fi'
alias sci='svn ci'
alias sco='svn co'
alias sst='svn status'
alias saa='svn status | grep "^\?" | awk "{print \$2}" | xargs svn add'
alias sra='svn status | grep "^\!" | awk "{print \$2}" | xargs svn remove'
alias signore='svn propset svn:ignore'
# git
alias gst='git status'
alias gaa='git add .'
alias gci='git commit'
# Ruby
alias irb='irb --readline --simple-prompt -r irb/completion'
# Rails
alias ss='./script/server'
alias sc='./script/console'
alias sg='./script/generate'
alias migrate='echo "Migrating..."; rake db:migrate; echo "Preparing test database.."; rake db:test:prepare'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment