Method: Bio::Shell::Ghost#load_history_file
- Defined in:
- lib/bio/shell/core.rb
#load_history_file(file) ⇒ Object
409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/bio/shell/core.rb', line 409 def load_history_file(file) if File.exist?(file) STDERR.print "Loading history (#{file}) ... " File.open(file).each do |line| unless line[/^# /] Readline::HISTORY.push line.chomp end end STDERR.puts "done" end end |