From owner-freebsd-bugs Sat Mar 7 09:00:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25020 for freebsd-bugs-outgoing; Sat, 7 Mar 1998 09:00:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25013; Sat, 7 Mar 1998 09:00:02 -0800 (PST) (envelope-from gnats) 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 ; 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 Reply-To: nsayer@quack.kfu.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/5936: Add hostname to C shell prompt Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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