Sha256: 696459cd441c1eeaa7451ab14a10bb64f635dc51569e0f7ef785eaf64cda43d8

Contents?: true

Size: 387 Bytes

Versions: 26

Compression:

Stored size: 387 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
      'File where settings are saved to. Default: ~/.byebug_save'
    end

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

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
byebug-8.0.1 lib/byebug/settings/savefile.rb
byebug-8.0.0 lib/byebug/settings/savefile.rb
byebug-7.0.0 lib/byebug/settings/savefile.rb
byebug-6.0.2 lib/byebug/settings/savefile.rb
byebug-6.0.1 lib/byebug/settings/savefile.rb
byebug-6.0.0 lib/byebug/settings/savefile.rb