Add fast console script
This commit is contained in:
parent
3157093b90
commit
adaa55365c
2
ghe-fast-tools/bin/ghe-fast-console.rb
Normal file
2
ghe-fast-tools/bin/ghe-fast-console.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo /usr/bin/github-fast-env --interactive /usr/lib/github-fast-env/ghe-fast-console.rb
|
19
ghe-fast-tools/ghe-fast-console.rb
Normal file
19
ghe-fast-tools/ghe-fast-console.rb
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/data/github/current/bin/safe-ruby
|
||||||
|
|
||||||
|
require "irb"
|
||||||
|
|
||||||
|
ARGV.append("--prompt=default")
|
||||||
|
ARGV.append("--readline")
|
||||||
|
|
||||||
|
ENV["IRBRC"], ENV["IRBRC_WAS"] = "/data/github/current/config/console/irbrc.rb", ENV["IRBRC"]
|
||||||
|
|
||||||
|
require "irb/completion"
|
||||||
|
|
||||||
|
IRB.conf[:AUTO_INDENT] = true
|
||||||
|
IRB.conf[:USE_READLINE] = true
|
||||||
|
IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES)
|
||||||
|
unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
|
||||||
|
IRB.conf[:LOAD_MODULES] << 'irb/completion'
|
||||||
|
end
|
||||||
|
|
||||||
|
IRB.start
|
Loading…
Reference in New Issue
Block a user