mirror of
https://github.com/vbatts/persistent-shell-history.git
synced 2024-11-22 07:35:38 +00:00
renaming the traditional storage, so that current functionaltiy will not
interrupt
This commit is contained in:
parent
7f97ccc568
commit
cd1298bf35
2 changed files with 3 additions and 3 deletions
|
@ -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 = {}
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue