Sha256: 01b3f556f8957c4e528c38e7049487659bea2ff6aeaf0843241612f5e242dc05

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

require 'byebug/setting'

module Byebug
  #
  # Setting to customize the file where byebug's history is saved.
  #
  class SavefileSetting < Setting
    DEFAULT = File.expand_path("#{ENV['HOME'] || '.'}/.byebug_save")

    def banner
      <<-EOB
        File where save commands saves current settings to. Default:
        ~/.byebug_save
      EOB
    end

    def to_s
      "The command history file is #{value}\n"
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/settings/savefile.rb
byebug-5.0.0 lib/byebug/settings/savefile.rb