From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 21:38:06 2006 Return-Path: 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 3D50116A4A7; Wed, 29 Nov 2006 21:38:06 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5548A43E80; Wed, 29 Nov 2006 21:34:13 +0000 (GMT) (envelope-from jan.grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GpX3w-0002yz-NP; Wed, 29 Nov 2006 21:34:08 +0000 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:50168) by mail.ilrt.bris.ac.uk with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1GpX3Q-0003AQ-U7; Wed, 29 Nov 2006 21:33:20 +0000 Date: Wed, 29 Nov 2006 21:33:20 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: Andrew Pantyukhin In-Reply-To: Message-ID: <20061129213011.A32663@tribble.ilrt.bris.ac.uk> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-ILRT-MailScanner: Found to be clean X-ILRT-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.561, required 5, autolearn=disabled, ALL_TRUSTED -1.44, AWL 0.88) X-ILRT-MailScanner-From: jan.grant@bristol.ac.uk X-Spam-Status: No X-Spam-Score: -1.3 X-Spam-Level: - Cc: FreeBSD Questions 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 21:38:06 -0000 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.