From owner-freebsd-questions Sun Jul 9 17:21:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt052n3e.san.rr.com (dt052n3e.san.rr.com [204.210.33.62]) by hub.freebsd.org (Postfix) with ESMTP id AC22837C18E for ; Sun, 9 Jul 2000 17:21:07 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt052n3e.san.rr.com (8.9.3/8.9.3) with ESMTP id RAA69851; Sun, 9 Jul 2000 17:19:42 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <3969169E.10DB028@gorean.org> Date: Sun, 09 Jul 2000 17:19:42 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Herman Cc: cjclark@alum.mit.edu, Mark Ovens , questions@FreeBSD.ORG Subject: Re: Question about the use of ssh-agent(1) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Paul Herman wrote: > > 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 I'm a little confused about exactly what the original poster is trying to accomplish. If you are trying to use ssh-agent in X, your best bet is to start your window manager as the child of ssh-agent. For example, the last line of my .xinitrc file is: exec ssh-agent gnome-session (Yes, I've gone over to the dark side.) That way all windows that are started by your window manager will inherit ssh-agent. As for the bash prompt issue, take a look at http://freebsd.simplenet.com/Bash-prompts.txt Enjoy, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message