Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Mar 1998 08:50:26 -0800 (PST)
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/5936: Add hostname to C shell prompt
Message-ID:  <199803071650.IAA14320@quack.kfu.com>

next in thread | raw e-mail | index | archive | help

>Number:         5936
>Category:       conf
>Synopsis:       Add hostname to C shell prompt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  7 09:00:01 PST 1998
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
just me
>Release:        FreeBSD 2.2.5-RELEASE i386
>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"

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803071650.IAA14320>