1
0
Fork 0
mirror of https://github.com/vbatts/persistent-shell-history.git synced 2024-10-31 21:36:38 +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 #!/usr/bin/env ruby
require 'persistent-shell-history/bash-history' require 'persistent-shell-history/old-history-store'
require 'optparse' require 'optparse'
options = {} options = {}

View file

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