1
0
Fork 0
mirror of https://github.com/vbatts/persistent-shell-history.git synced 2024-11-25 00:45:39 +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 == USAGE
See the --help also, See the --help also,
Usage: bash_history [options] Usage: bash_history [options]
--inspect inspect the data --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 -l, --list list history
--fix fix times --fix fix times
--format FORMAT specify a different strftime format. (default is "%F %T")
-f, --find PAT find a command with pattern PAT -f, --find PAT find a command with pattern PAT
== LICENSE == LICENSE
Copyright (c) 2012 Vincent Batts, Raleigh, NC, USA 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| opts.on('--inspect','inspect the data') do |o|
options[:inspect] = o options[:inspect] = o
end 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 bh_options[:file] = o
end 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 bh_options[:archive_file] = o
end end
opts.on('-l','--list','list history') do |o| opts.on('-l','--list','list history') do |o|