1
0
Fork 0
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:
Vincent Batts 2012-05-18 12:41:09 -04:00
parent 52ef8575a9
commit de5ca80543
2 changed files with 6 additions and 4 deletions

4
README
View file

@ -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

View file

@ -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|