mirror of
https://github.com/vbatts/persistent-shell-history.git
synced 2024-11-21 15:15:40 +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
|
||||
|
||||
require 'persistent-shell-history/bash-history'
|
||||
require 'persistent-shell-history/old-history-store'
|
||||
require 'optparse'
|
||||
|
||||
options = {}
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue