From owner-freebsd-questions Fri Jan 22 05:44:55 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA18078 for freebsd-questions-outgoing; Fri, 22 Jan 1999 05:44:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from btm4r4.alcatel.be (btm4r4.alcatel.be [195.207.101.110]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA18070 for ; Fri, 22 Jan 1999 05:44:51 -0800 (PST) (envelope-from livensw@rc.bel.alcatel.be) Received: from rc.bel.alcatel.be (btmq9s.rc.bel.alcatel.be [138.203.65.182]) by btm4r4.alcatel.be (8.9.1a/8.9.1) with SMTP id OAA17521; Fri, 22 Jan 1999 14:43:52 +0100 (MET) Received: by rc.bel.alcatel.be id OAA26436; Fri, 22 Jan 1999 14:43:32 +0100 Date: Fri, 22 Jan 1999 14:43:32 +0100 From: livensw@rc.bel.alcatel.be (Wim Livens) Message-Id: <199901221343.OAA26436@ rc.bel.alcatel.be> To: questions@FreeBSD.ORG, pcollins@ocsny.com Subject: Re: setting bash prompt Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-MD5: qij9V1yCf/VR++wmfZnxwA== Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > i added my dot profile file as below and it works great! > date and everything which i discovered purely by accident! > > PS1="\u@\h \d $ " > SHELL=/usr/local/bin/bash export SHELL > > however where are these commands from \u and \h > i know what they mean but not why or where?? > I don't understand your question entirely but, see man bash, section PROMPTING. \h is like hostname -s \u is like id -un (i guess) > how do i add (pwd) to the prompt also so i know which directory i'm currently at? > \w > and how do i get this prompt to appear in an xterm?? export PS1 in your .profile. Alternatively, you could also set PS1 in your .bashrc Wim Livens. Alcatel - Corporate Research Center wim.livens@alcatel.be Fr. Wellesplein 1 livensw@rc.bel.alcatel.be B-2018 Antwerpen Tel: +32 3 240 7570 Belgium. Fax: +32 3 240 9932 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message