From owner-freebsd-questions Sun Jul 9 15:32:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 2106537BF38 for ; Sun, 9 Jul 2000 15:32:44 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-195-14-251-223.netcologne.de [195.14.251.223]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id AAA24284; Mon, 10 Jul 2000 00:32:42 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e69MWXq04208; Mon, 10 Jul 2000 00:32:33 +0200 (CEST) Date: Mon, 10 Jul 2000 00:32:33 +0200 (CEST) From: Paul Herman To: cjclark@alum.mit.edu Cc: Mark Ovens , questions@FreeBSD.ORG Subject: Re: Question about the use of ssh-agent(1) In-Reply-To: <20000709151543.G394@dialin-client.earthlink.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 9 Jul 2000, Crist J. Clark wrote: > xterm xterm -n "$USER@$HOST" & > > And I do not want to use the alias. > > This is actually one of those things I have always meant to ask > about. Is there a better way to do that? Setting 'XTerm.title: > $USER@$HOST' in .Xresources would not have the desired effect for > several reasons. in .bashrc / .bash_login depending on your xterms, something like: xtitle () { echo -n -e "\033]0;$*\007"; } if [ "x$TERM" = xxterm ] then xtitle $USER@$HOST fi This also depends on what you mean by a "better way to do that." I use(d) this in a "alias cd=" to display the path in the window title every time pwd changed. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message