-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathirbrc
More file actions
34 lines (28 loc) · 1.09 KB
/
irbrc
File metadata and controls
34 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
begin
# load wirble
#require "rubygems"
#require 'wirble'
# start wirble (with color)
#Wirble.init :skip_prompt=>true
#Wirble.colorize
rescue LoadError => err
warn "Couldn't load Wirble: #{err}"
end
#IRB.conf[:PROMPT][:DEFAULT][:PROMPT_C]=Wirble::Colorize.colorize_string(IRB.conf[:PROMPT][:DEFAULT][:PROMPT_C], :light_blue)
#IRB.conf[:PROMPT][:DEFAULT][:PROMPT_I]=Wirble::Colorize.colorize_string(IRB.conf[:PROMPT][:DEFAULT][:PROMPT_I], :blue)
#IRB.conf[:PROMPT][:DEFAULT][:PROMPT_S]=Wirble::Colorize.colorize_string(IRB.conf[:PROMPT][:DEFAULT][:PROMPT_S], :yellow)
#IRB.conf[:PROMPT][:DEFAULT][:RETURN]=Wirble::Colorize.colorize_string(IRB.conf[:PROMPT][:DEFAULT][:RETURN], :brown)
def ls
puts "you are in IRB. Take a breath, relax.. and try again"
end
require 'net/http'
require 'uri'
def _post(url, params)
url+="/" unless url =~ /\/$/
Net::HTTP.post_form(URI.parse(url),params)
end