mirror of
https://github.com/vbatts/persistent-shell-history.git
synced 2024-11-21 15:15:40 +00:00
adding to the notes
This commit is contained in:
parent
52ef8575a9
commit
de5ca80543
2 changed files with 6 additions and 4 deletions
4
README
4
README
|
@ -16,12 +16,14 @@ and set in ~/.bashrc:
|
|||
See the --help also,
|
||||
Usage: bash_history [options]
|
||||
--inspect inspect the data
|
||||
-h, --history FILE use bash_history FILE instead of the default (~/.bash_history)
|
||||
-d, --db FILE use database FILE instead of the default (~/.bash_history.db)
|
||||
-l, --list list history
|
||||
--fix fix times
|
||||
--format FORMAT specify a different strftime format. (default is "%F %T")
|
||||
-f, --find PAT find a command with pattern PAT
|
||||
|
||||
|
||||
|
||||
== LICENSE
|
||||
Copyright (c) 2012 Vincent Batts, Raleigh, NC, USA
|
||||
|
||||
|
|
|
@ -64,10 +64,10 @@ if $0 == __FILE__
|
|||
opts.on('--inspect','inspect the data') do |o|
|
||||
options[:inspect] = o
|
||||
end
|
||||
opts.on('--history FILE','use bash_history FILE instead of the default (~/.bash_history)') do |o|
|
||||
opts.on('-h','--history FILE','use bash_history FILE instead of the default (~/.bash_history)') do |o|
|
||||
bh_options[:file] = o
|
||||
end
|
||||
opts.on('--db FILE','use database FILE instead of the default (~/.bash_history.db)') do |o|
|
||||
opts.on('-d','--db FILE','use database FILE instead of the default (~/.bash_history.db)') do |o|
|
||||
bh_options[:archive_file] = o
|
||||
end
|
||||
opts.on('-l','--list','list history') do |o|
|
||||
|
|
Loading…
Reference in a new issue