1
0
Fork 0
mirror of https://github.com/vbatts/persistent-shell-history.git synced 2024-11-21 23:25:40 +00:00

renaming the traditional storage, so that current functionaltiy will not

interrupt
This commit is contained in:
Vincent Batts 2012-08-23 21:18:15 -04:00
parent 7f97ccc568
commit cd1298bf35
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require 'persistent-shell-history/bash-history'
require 'persistent-shell-history/old-history-store'
require 'optparse'
options = {}

View file

@ -7,7 +7,7 @@ require 'persistent-shell-history/abstract-history-store'
module Persistent
module Shell
class HistoryStore < AbstractHistoryStore
class OldHistoryStore < AbstractHistoryStore
SCHEMA_VERSION = "1"
OPTIONS = {
:file => File.expand_path("~/.bash_history"),
@ -16,7 +16,7 @@ module Persistent
}
def initialize(opts = {})
@options = OPTIONS.merge(opts)
_load if schema_match?
_load unless db.has_key? "schema_version"
end
def time_format; @options[:time_format]; end
def time_format=(tf); @options[:time_format] = tf; end