From owner-freebsd-questions Fri Jul 5 17:33:16 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA22171 for questions-outgoing; Fri, 5 Jul 1996 17:33:16 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA22166 for ; Fri, 5 Jul 1996 17:33:13 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ai24614; 6 Jul 96 0:33 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa06522; 6 Jul 96 0:52 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id WAA03892; Fri, 5 Jul 1996 22:34:33 GMT Date: Fri, 5 Jul 1996 22:34:33 GMT Message-Id: <199607052234.WAA03892@jraynard.demon.co.uk> From: James Raynard To: rcutter@ctgusa.com CC: questions@freebsd.org In-reply-to: <1.5.4.32.19960705154424.008cda38@ctgusa.com> (message from Ryan Cutter on Fri, 05 Jul 1996 11:44:24 -0400) Subject: Re: Changing prompt Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > How can I change my prompt in FreeBSD to reflect the current > directory I'm in? It depends on which shell you're using - it'll be the C shell if you haven't changed it. Here's the answer from the comp.unix.questions FAQ:- Put this in your .cshrc - customize the prompt variable the way you want. alias setprompt 'set prompt="${cwd}% "' setprompt # to set the initial prompt alias cd 'chdir \!* && setprompt' This will give you a prompt that looks like '/home/james% ' when you log in. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/