From owner-freebsd-questions@FreeBSD.ORG  Wed Nov 29 21:51:32 2006
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
X-Original-To: questions@freebsd.org
Delivered-To: freebsd-questions@FreeBSD.ORG
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9066616A4FC
	for <questions@freebsd.org>; Wed, 29 Nov 2006 21:51:32 +0000 (UTC)
	(envelope-from infofarmer@gmail.com)
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1405943D66
	for <questions@freebsd.org>; Wed, 29 Nov 2006 21:51:06 +0000 (GMT)
	(envelope-from infofarmer@gmail.com)
Received: by ug-out-1314.google.com with SMTP id o2so1750245uge
	for <questions@freebsd.org>; Wed, 29 Nov 2006 13:51:09 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
	b=FqT0dLzfRspUG/5gqohnSlHEKWrRqlqzvkjh+KWSE4pNOzhoJs8460EXJ6q1Q+1bG8XNF7JwuUBstHIxsIUR+wmaV5y0S5CDJt8+a7l382o5srRzltPSxyhT7DYpxPKRlgIaoJ7amEe1sJlwq6eMJBNpJO7c8xf7XeEw2ULywuM=
Received: by 10.78.118.19 with SMTP id q19mr2722455huc.1164837069108;
	Wed, 29 Nov 2006 13:51:09 -0800 (PST)
Received: by 10.78.167.16 with HTTP; Wed, 29 Nov 2006 13:51:09 -0800 (PST)
Message-ID: <cb5206420611291351g46f41159u926577bfe7f7edd3@mail.gmail.com>
Date: Thu, 30 Nov 2006 00:51:09 +0300
From: "Andrew Pantyukhin" <infofarmer@FreeBSD.org>
Sender: infofarmer@gmail.com
To: "Jan Grant" <jan.grant@bristol.ac.uk>
In-Reply-To: <20061129213011.A32663@tribble.ilrt.bris.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <cb5206420611290603v2f0a946bub5994f89b2ea0dd9@mail.gmail.com>
	<20061129213011.A32663@tribble.ilrt.bris.ac.uk>
X-Google-Sender-Auth: 96590330146c9f6d
Cc: FreeBSD Questions <questions@freebsd.org>
Subject: Re: Real-time command history sharing between interactive shells
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Nov 2006 21:51:32 -0000

On 11/30/06, Jan Grant <jan.grant@bristol.ac.uk> wrote:
> 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.

I think, I'll follow your advice. It's high time I forgot about
csh, but I wonder if you tried to change root's shell to zsh?