Erlang Shell history
Sat Jul 10 09:54:54 CEST 2021
Fred, I’m not very comfortable playing with disk_log. Would it be possible
to prevent the next N commands to be stored in the history?
> On 07/10, Frank Muller wrote:
> >Hi guys
> >Is there a way to remove the last N commands from shell history ?
> By default the cache lines are stored at `filename:basedir(user_cache,
> "erlang-history")`, which will contain the log data. This is handled using
> disk_log as an application (http://erlang.org/doc/man/disk_log.html) and
> uses the internal format, which has both a size check and an index.
> Deleting or
> removing records would require specifically maintaining that format.
> It might be easier to just drop the files, or replace the content of the
> lines in the actual content file while maintaining the string length,
> since I
> don't think it does an actual hash check, just a size check.
> I've tried replacing a few lines out of mine and the in-line edit seems to
> fine as long as length is maintained.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions