From owner-freebsd-questions Wed Oct 18 2:38:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from stjohn.stjohn.ac.th (stjohn.stjohn.ac.th [202.21.144.1]) by hub.freebsd.org (Postfix) with ESMTP id 2281B37B4E5 for ; Wed, 18 Oct 2000 02:38:26 -0700 (PDT) Received: from granite ([203.151.134.100]) by stjohn.stjohn.ac.th (8.9.3/8.9.3) with SMTP id QAA08180 for ; Wed, 18 Oct 2000 16:33:05 +0700 (GMT) Message-Id: <3.0.6.32.20001018163847.007ab6b0@stjohn.stjohn.ac.th> X-Sender: mcrogerm@stjohn.stjohn.ac.th X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 18 Oct 2000 16:38:47 +0700 To: freebsd-questions@freebsd.org From: Roger Merritt Subject: setting prompt in tcsh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Using bash I set PS1 to "[\u@\h:\w]" and then test to see if I'm root or not to add '$' or '#'. This gives me a nice prompt like '[acharn@ceres:/usr/ports/security]$ ', which is useful because I have two machines I telnet to and it's nice to be reminded if I've su'd to root and just what directory I'm currently in. I've been going through man 1 tcsh and haven't found anything similar, and I can't find the web site I ran across a couple of months ago which had unix tutorials, including one on shells. Can anyone help me out with an expression to put in .cshrc or .tcshrc so I can get a similar prompt in tcsh? After playing with it a little bit I've decided I should restore it as the shell for root (since tcsh lives in /bin). -- Roger "The only way to look younger is not to be born so soon." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message