Permalink
Browse files

Add ruby files

  • Loading branch information...
1 parent 01b3c14 commit c950a467fbb976ca730d58a67614b56664ca9076 @bronson committed with UNSET TODO Nov 29, 2010
Showing with 40 additions and 0 deletions.
  1. +10 −0 .autotest
  2. +2 −0 .bash/ruby
  3. +1 −0 .gemrc
  4. +26 −0 .irbrc
  5. +1 −0 .rspec
View
@@ -0,0 +1,10 @@
+# http://rubydoc.info/gems/autotest/4.4.1/frames
+
+require 'autotest/growl'
+require 'autotest/fsevent'
+require 'autotest/restart'
+
+Autotest.add_hook :initialize do |at|
+ %w[.sqlite. doc/ db/ log/ tmp/ .svn/ .hg/ .git/ vendor/ spec/fixtures/].each {|exception| at.add_exception(exception)}
+end
+
View
@@ -0,0 +1,2 @@
+# load rvm if it's available
+[ -s ~/.rvm/scripts/rvm ] && source ~/.rvm/scripts/rvm
View
1 .gemrc
@@ -0,0 +1 @@
+gem: --no-ri --no-rdoc
View
26 .irbrc
@@ -0,0 +1,26 @@
+require 'pp'
+require 'irb/completion'
+require 'irb/ext/save-history'
+require 'gmarik/irb-1.8-history-fix'
+
+IRB.conf[:IRB_RC] = lambda { |context|
+ require 'gmarik/all'
+}
+
+
+IRB.conf.merge!({
+ :USE_READLINE => true,
+ :AUTO_INDENT => true,
+ :SAVE_HISTORY => 1000,
+ :PROMPT_MODE => :VERBOSE,
+ :HISTORY_FILE => "#{ENV['HOME']}/.irb_history",
+})
+
+IRB.conf[:PROMPT] ||= {}
+IRB.conf[:PROMPT][:VERBOSE] = {
+ :PROMPT_I => "#{cwd = File.basename(Dir.pwd)}> ",
+ :PROMPT_S => "#{cwd}* ",
+ :PROMPT_C => "#{cwd}? ",
+ :RETURN => "=> %s\n"
+}
+
View
1 .rspec
@@ -0,0 +1 @@
+--color

0 comments on commit c950a46

Please sign in to comment.