Skip to content

Instantly share code, notes, and snippets.

View erickrause's full-sized avatar

Eric Krause erickrause

View GitHub Profile
@erickrause
erickrause / gist:5885512
Created June 28, 2013 15:24
'c' to get to ~/code with directory tab completion. I use this for zsh, should work for bash as well.
function c() {
cd ~/code/$1;
}
#compdef c
function _c () {
_files -W ~/code -/
}
compdef _c c
@erickrause
erickrause / gist:4a9c3c9358dd7c161fe4
Created February 12, 2015 18:18
Quick guide to get rspec and spring running.
Gemfile
group :development, :test do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem "spring-commands-rspec"
gem 'rspec-rails'
gem 'database_cleaner'
gem 'factory_girl_rails'
end