mirror of https://github.com/bjeanes/dotfiles.git
Ignored some more files globally and customized irbrc a bit to have nice colors
parent
4767f4e57f
commit
ec7f5ac200
|
@ -7,3 +7,5 @@ pkg/*
|
||||||
*.pbxuser
|
*.pbxuser
|
||||||
*.move1v3
|
*.move1v3
|
||||||
*~
|
*~
|
||||||
|
log/*
|
||||||
|
tmp/**/*
|
52
irbrc
52
irbrc
|
@ -1,8 +1,46 @@
|
||||||
require 'irb/completion'
|
# require 'wirble'
|
||||||
require 'map_by_method'
|
require 'rubygems'
|
||||||
require 'what_methods'
|
require 'wirble'
|
||||||
require 'pp'
|
|
||||||
IRB.conf[:AUTO_INDENT]=true
|
__wirble_colors = {
|
||||||
|
# delimiter colors
|
||||||
|
:comma => :white,
|
||||||
|
:refers => :white,
|
||||||
|
|
||||||
|
# container colors (hash and array)
|
||||||
|
:open_hash => :white,
|
||||||
|
:close_hash => :white,
|
||||||
|
:open_array => :white,
|
||||||
|
:close_array => :white,
|
||||||
|
|
||||||
|
# object colors
|
||||||
|
:open_object => :light_red,
|
||||||
|
:object_class => :red,
|
||||||
|
:object_addr_prefix => :blue,
|
||||||
|
:object_line_prefix => :blue,
|
||||||
|
:close_object => :light_red,
|
||||||
|
|
||||||
|
# symbol colors
|
||||||
|
:symbol => :blue,
|
||||||
|
:symbol_prefix => :blue,
|
||||||
|
|
||||||
|
# string colors
|
||||||
|
:open_string => :light_green,
|
||||||
|
:string => :light_green,
|
||||||
|
:close_string => :light_green,
|
||||||
|
|
||||||
|
# misc colors
|
||||||
|
:number => :light_blue,
|
||||||
|
:keyword => :orange,
|
||||||
|
:class => :red,
|
||||||
|
:range => :light_blue,
|
||||||
|
}
|
||||||
|
|
||||||
|
Wirble.init(:history_size => 10000)
|
||||||
|
Wirble.colorize
|
||||||
|
|
||||||
|
Wirble::Colorize.colors = __wirble_colors
|
||||||
|
|
||||||
|
|
||||||
class Object
|
class Object
|
||||||
# Return a list of methods defined locally for a particular object. Useful
|
# Return a list of methods defined locally for a particular object. Useful
|
||||||
|
@ -12,7 +50,3 @@ class Object
|
||||||
(obj.methods - obj.class.superclass.instance_methods).sort
|
(obj.methods - obj.class.superclass.instance_methods).sort
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'wirble'
|
|
||||||
Wirble.init
|
|
||||||
Wirble.colorize
|
|
Loading…
Reference in New Issue