From owner-freebsd-questions@FreeBSD.ORG Sun Apr 20 17:41:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6EA334E for ; Sun, 20 Apr 2014 17:41:54 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B10C13C3 for ; Sun, 20 Apr 2014 17:41:54 +0000 (UTC) Received: from r56.edvax.de (port-92-195-108-40.dynamic.qsc.de [92.195.108.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id A657D3CBD3 for ; Sun, 20 Apr 2014 19:41:45 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s3KHeb6L002722 for ; Sun, 20 Apr 2014 19:40:37 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 20 Apr 2014 19:40:37 +0200 From: Polytropon To: FreeBSD Questions Subject: History file for dialog C shell (t)csh Message-Id: <20140420194037.629437f3.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 17:41:54 -0000 I have a question regarding shell history when running several shell instances. The C shell (still) is my primary interactive shell. It stores commands in ~/.history. But as I'm using more than one shell instance (in fact, 5+ shells is the norm here, called inside X terminals), I find that the history file only contains commands from one of those shells, even though the history of each indivual shell can recall previous commands. At the end, only one shell's commands are stored in the history file, so after a reboot for example, all shells have _that_ specific history. My question sounds stupid, even to me: Is there a way to have individual shell history files for each shell instance? I don't even have an idea of how to make the association shell<->history for later re-identification... it already sounds confusing... Or on the other hand, is it possible to have all shells send their history to a common history file? Or should I simply switch over to a different shell? ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...