From nsayer@quack.kfu.com  Sat Mar  7 08:50:27 1998
Received: from quack.kfu.com (TO75cFuzQHj2WN70kjnKCPlc0hwp6Gzx@quack.kfu.com [204.147.226.254])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA24538
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 7 Mar 1998 08:50:27 -0800 (PST)
          (envelope-from nsayer@quack.kfu.com)
Received: (from nsayer@localhost)
	by quack.kfu.com (8.8.7/8.8.5) id IAA14320;
	Sat, 7 Mar 1998 08:50:26 -0800 (PST)
Message-Id: <199803071650.IAA14320@quack.kfu.com>
Date: Sat, 7 Mar 1998 08:50:26 -0800 (PST)
From: Nick Sayer <nsayer@quack.kfu.com>
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Add hostname to C shell prompt
X-Send-Pr-Version: 3.2

>Number:         5936
>Category:       conf
>Synopsis:       Add hostname to C shell prompt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  7 09:00:01 PST 1998
>Closed-Date:    Thu Dec 24 20:52:44 PST 1998
>Last-Modified:  Thu Dec 24 20:55:51 PST 1998
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
just me
>Environment:

>Description:

For those of us with lots of FreeBSD machines, it's sometimes tough to
tell which one we're logged into. The old SunOS 4.x behavior of putting
the hostname in the prompt is preferable.

>How-To-Repeat:

>Fix:

Add to /etc/csh.cshrc:

if ($?USER == 0 || $?prompt == 0) exit

set prompt=`hostname -s`"$prompt"

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: cwt 
State-Changed-When: Thu Dec 24 20:52:44 PST 1998 
State-Changed-Why:  
src/etc/csh.cshrc is a placeholder for local customizations.  if you like tcsh, try  
'set prompt="%m:%/> "' ... we can't put everyone's favorites in so the file is simply 
left for the user to whack away at...  
>Unformatted:
