Real-time command history sharing between interactive shells

Jan Grant jan.grant at bristol.ac.uk
Wed Nov 29 13:38:06 PST 2006


On Wed, 29 Nov 2006, Andrew Pantyukhin wrote:

> I want to be able to define groups of interactive
> shells (preferably even across different users)
> so they have one single shared command history.
> Any command executed in one of them should be
> available through all history mechanisms in the
> other ones.
> 
> I imagine some ways to do it in tcsh. I'm sure
> many users would like this kind of functionality,
> maybe some of them have already implemented it?

zsh is a pretty good interactive shell (it finally weaned me off tcsh), 
as well as supporting a full range of redirection and control 
constructs. You should look at that, in particular the
	set -o sharehistory
option (which does half of what you're after).

Combine this with a shared .history file and you should get the effect 
you're after.

-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Whenever I see a dog salivate I get an insatiable urge to ring a bell.


More information about the freebsd-questions mailing list