From owner-freebsd-current@FreeBSD.ORG Fri Apr 29 08:51:20 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A773516A4CE for ; Fri, 29 Apr 2005 08:51:20 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 122A743D64 for ; Fri, 29 Apr 2005 08:51:20 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id CD2FC6520E; Fri, 29 Apr 2005 09:50:25 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 35632-03-2; Fri, 29 Apr 2005 09:50:25 +0100 (BST) Received: from empiric.dek.spc.org (82-35-116-62.cable.ubr07.dals.blueyonder.co.uk [82.35.116.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 5DC596520C; Fri, 29 Apr 2005 09:50:24 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 4938E623B; Fri, 29 Apr 2005 09:51:13 +0100 (BST) Date: Fri, 29 Apr 2005 09:51:13 +0100 From: Bruce M Simpson To: Chuck Robey Message-ID: <20050429085113.GF789@empiric.icir.org> Mail-Followup-To: Chuck Robey , current References: <427196C0.5040506@chuckr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427196C0.5040506@chuckr.org> cc: current Subject: Re: tcsh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 08:51:20 -0000 On Fri, Apr 29, 2005 at 02:06:56AM +0000, Chuck Robey wrote: > Any chance that something so basic as this, that improves things so > awfully much, could be added to the .tcshrc? If the idea is liked well > enough, I will edit it enough so that the special use of prompt strings > that are specific to tcsh is made conditional. Might be better to use cwdcmd: (from bms .tcshrc) %%% # Update rxvt title bar and icon when changing directory alias cwdcmd 'echo -n "\033]2;${HOST}:$cwd - tcsh\007\033]1;tcsh\007"' cwdcmd # Force update upon ~/.tcshrc # reload. set promptchars='%#' # [un]privileged user shell prompt characters set prompt="%B%m:%.06%b %# " # host:cwd with bold and relative to $HOME set ellipsis # ellipsize after depth of 6 elements %%% I tried to do the same with jobcmd once (update title bar when running foreground jobs) but had problems with the shell trying to tell when it was back in interactive mode. Also, to update the title bar after an ssh session running in the foreground terminates, some additional work (and possibly patches) would be needed. Regards, BMS