1
0
Fork 0
mirror of https://github.com/vbatts/persistent-shell-history.git synced 2024-11-24 08:25: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

6
README
View file

@ -14,14 +14,16 @@ and set in ~/.bashrc:
== USAGE
See the --help also,
Usage: bash_history [options]
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|