From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 22:08:14 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 C026916A403; Wed, 29 Nov 2006 22:08:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E92643CAB; Wed, 29 Nov 2006 22:08:10 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin05-en2 [10.13.10.150]) by smtpout.mac.com (Xserve/8.12.11/smtpout05/MantshX 4.0) with ESMTP id kATM85v8000255; Wed, 29 Nov 2006 14:08:05 -0800 (PST) Received: from [17.214.13.96] (a17-214-13-96.apple.com [17.214.13.96]) (authenticated bits=0) by mac.com (Xserve/smtpin05/MantshX 4.0) with ESMTP id kATM82sH009768; Wed, 29 Nov 2006 14:08:03 -0800 (PST) In-Reply-To: References: <20061129213011.A32663@tribble.ilrt.bris.ac.uk> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <550FEF24-3168-4EB6-836A-34985F37BE2A@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Wed, 29 Nov 2006 14:08:01 -0800 To: Andrew Pantyukhin X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes 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 22:08:14 -0000 On Nov 29, 2006, at 1:51 PM, Andrew Pantyukhin wrote: >> 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? ZSH is a remarkably good choice for a shell. It's as compatible with standard Bourne shell scripts as Bash is, only it also supports some nice options to help people familiar with CSH make the transition (ie, providing mechanisms to convert "setenv" to "export" and so forth). It works fine as root's shell, although I would encourage you to make sure that your toor account still works with /bin/sh, especially if / usr/local is on a different filesystem. -- -Chuck