NAME

Zoidberg::Fish::Log - History and log plugin for Zoidberg

SYNOPSIS

This module is a Zoidberg plugin, see Zoidberg::Fish for details.

DESCRIPTION

This plugin listens to the 'cmd' event and records all input in the history log.

If multiple instances of zoid are using the same history file their histories will be merged. TODO option for more bash like behaviour

In order to use the editor feature of the fc command the module File::Temp should be installed.

EXPORT

None by default.

CONFIG

loghist

Unless this config is set no commands are recorded.

logfile

File to store the history.

maxlines

Maximum number of lines in the history. If not set the environment variable 'HISTSIZE' is used. In fact the number of lines can be a bit more then this value on run time because the file is not purged after every write.

no_duplicates

If set a command will not be saved if it is the same as the previous command.

COMMANDS

fc [-r][-e editor] [first[last]]
fc -l[-nr] [first[last]]
fc -s[old=new][first]

TODO this command doesn't work yet !

history

Returns the contents of the current history file.

TODO options like the ones for bash's implementation

log string type

Adds string to the history file with the current timestamp and the supplied type tag. The type defaults to "log". If the type is set to "hist" the entry will become part of the command history after the history file is read again.

EVENTS

read_history

Returns an array with history contents.

AUTHOR

Jaap Karssenberg (Pardus) <pardus@cpan.org>

Copyright (c) 2003 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Zoidberg

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 164:

=cut found outside a pod block. Skipping to next block.

Around line 175:

=cut found outside a pod block. Skipping to next block.