mirror of https://github.com/bjeanes/dotfiles.git
Require rubygems into irb and don't set rails logger to STDOUT
parent
aed1d1f9bf
commit
df4f229ad3
|
@ -55,7 +55,6 @@ syntax on
|
||||||
nnoremap g* g*zz
|
nnoremap g* g*zz
|
||||||
nnoremap g# g#zz
|
nnoremap g# g#zz
|
||||||
|
|
||||||
|
|
||||||
" Tab completion
|
" Tab completion
|
||||||
set wildmode=list:longest,list:full
|
set wildmode=list:longest,list:full
|
||||||
set wildignore+=*.o,*.obj,.git,*.rbc,*.swp
|
set wildignore+=*.o,*.obj,.git,*.rbc,*.swp
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
begin
|
begin
|
||||||
|
require 'rubygems' unless defined? Gem
|
||||||
require 'irbtools'
|
require 'irbtools'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
$stderr.puts "Please install 'irbtools' or add it to your Gemfile"
|
$stderr.puts "Please install 'irbtools' or add it to your Gemfile"
|
||||||
|
@ -12,9 +13,3 @@ class Object
|
||||||
(obj.methods - obj.class.superclass.instance_methods).sort
|
(obj.methods - obj.class.superclass.instance_methods).sort
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Log to STDOUT if in Rails
|
|
||||||
if Object.const_defined?('ActiveRecord')
|
|
||||||
require 'logger'
|
|
||||||
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in New Issue