On Sun, Jul 28, 2024 at 5:16 AM songbird <songb...@anthive.com> wrote:
>   not that i would want that,
>
>   but it would be possible for various terminals to save to
> their own unique history files based upon terminal pty or
> tty or anything else you'd like and to reload those upon
> starting up again.

Yes.

Setting HISTFILE is one way to control that.  It is not uncommon for
folks to do something like:
HISTFILE=~/.history.${HOSTNAME}

when using a shared file system (e.g., NFS).

In bash, the history built-in takes a filename for most options.  So
you can do something like:
history -r ~/.history.project

to load a curated set of helpful commands (though at that point, shell
scripts may start to be more useful)

mrc

Reply via email to