Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (24 sloc) 0.652 kb
ab12afa @finack Inital creation of home dir
authored
1 # print SQL to STDOUT
2 if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
3 require 'logger'
4 RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
5 end
6
7 # Autocomplete
8 require 'irb/completion'
9
10 # Prompt behavior
11 ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
12
13 # History
14 require 'irb/ext/save-history'
15 IRB.conf[:SAVE_HISTORY] = 100
16 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
17
18 # Easily print methods local to an object's class
19 class Object
20 def local_methods
21 (methods - Object.instance_methods).sort
22 end
23 end
24
25 # copy a string to the clipboard
26 def pbcopy(string)
27 `echo "#{string}" | pbcopy`
28 string
29 end
Something went wrong with that request. Please try again.