Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated database aliases, added bundler fix

  • Loading branch information...
commit f1ef7de4772015bc9b5da6eb5bee71c6231b8006 1 parent 7ac454f
Joe Nelson and Jaymes Waters authored Bendyworks Pair committed
Showing with 15 additions and 0 deletions.
  1. +3 −0  .bash_aliases
  2. +12 −0 .irbrc
View
3  .bash_aliases
@@ -79,8 +79,11 @@ alias surplus='gem list | ack ","'
# Rails Commands
alias cr='c; yn rake'
alias deploy='cap_deploy.sh'
+alias mysqlup='mysql.server start'
+alias mysqldown='mysql.server stop'
alias pgup='pg_ctl -w -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pgdown='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
+alias redisup='redis-server /usr/local/etc/redis.conf'
alias rakedbtestkill='RAILS_ENV=test rake db:drop && RAILS_ENV=test rake db:create && rake db:test:prepare'
alias rb='ruby'
alias testenv='RAILS_ENV=test'
View
12 .irbrc
@@ -32,3 +32,15 @@ def clippy
@clippy.copy yield if block_given?
@clippy
end
+
+# https://github.com/carlhuda/bundler/issues/183#issuecomment-1149953
+if defined?(::Bundler)
+ global_gemset = ENV['GEM_PATH'].split(':').grep(/ruby.*@global/).first
+ if global_gemset
+ all_global_gem_paths = Dir.glob("#{global_gemset}/gems/*")
+ all_global_gem_paths.each do |p|
+ gem_path = "#{p}/lib"
+ $LOAD_PATH << gem_path
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.