From owner-freebsd-questions Mon Aug 3 05:28:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA16707 for freebsd-questions-outgoing; Mon, 3 Aug 1998 05:28:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from www.schell.de ([195.20.238.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA16696 for ; Mon, 3 Aug 1998 05:28:16 -0700 (PDT) (envelope-from sas@schell.de) Received: from localhost (sas@localhost [127.0.0.1]) by www.schell.de (8.9.0/8.9.0) with SMTP id OAA11989; Mon, 3 Aug 1998 14:27:58 +0200 Date: Mon, 3 Aug 1998 14:27:56 +0200 (MET DST) From: Sascha Schumann To: William Woods cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: BASH prompt question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 2 Aug 1998, William Woods wrote: > I would like to make my bash prompt show a little more info, like what dir the > user is in. How would I do this? Edit /etc/profile and insert at the end: test "$SHELL" = "/bin/bash" && test -e ~/.bashrc && source ~/.bashrc Or, if that looks too ugly to you: if [ "$SHELL" = "/bin/bash" -a -e ~/.bashrc ] ; then source ~/.bashrc fi Then you can put all your personal stuff (in case your system is used by more than one) in your ~/.bashrc: PS1='\u@\h:`pwd -P` $ ' export PS1 For more info, see man bash ;) Greetings, Sascha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message