From owner-freebsd-questions Fri Mar 15 20:14: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from picard.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by hub.freebsd.org (Postfix) with ESMTP id 000CB37B404 for ; Fri, 15 Mar 2002 20:14:01 -0800 (PST) Received: from localhost (johnnyb@localhost) by picard.vonbek.dhs.org (8.11.6/8.11.6) with ESMTP id g2G4FCE00259 for ; Fri, 15 Mar 2002 23:15:12 -0500 (EST) (envelope-from johnnyb@stny.rr.com) X-Authentication-Warning: picard.vonbek.dhs.org: johnnyb owned process doing -bs Date: Fri, 15 Mar 2002 23:15:12 -0500 (EST) From: John Bleichert X-X-Sender: johnnyb@picard.vonbek.dhs.org To: freebsd-questions@freebsd.org Subject: Re: hello & a few questions Message-ID: <20020315230733.S198-100000@picard.vonbek.dhs.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In Unxi shells, you set your prompt with an environment variable. For bash shell you need to set the $PS1 variable. An example would be: export PS1="[\u@\h \W]$ " Note that lack of a $. In tcsh it would be something like: set prompt="%n@%U%B%m%b%u - %c \> " Setting up your shell can be tedious at first, but once you get the hang of it it's well worth the effort. See the man page for your shell. The 'man' pages are the system's manual pages, readable via the 'man' command. I'm not sure which shell is the default in FreeBSD, I always install the bash port ASAP (although I script in sh). To set your shell run the 'chsh' command, but look in /etc/shells (read-only!) first to see which ones are installed. The man pages for your shell are your friend - the first couple paragraphs will tell you which file(s) are read for settings at login. Check them out. HTH - JB PS : $ man bash PSS : $ man tcsh PSSS : $ man intro PSSSS : $ man man >Greetings all, > >What is te default shell for FreeBSWD 4.5? >Is there a way for me to enable the default shell to show the location >+(path) as part of the prompt like in DOS? > >Thanks in advance, >Gregg Smith <-John Bleichert----syborg@stny.rr.com----------------> <-------------------http://vonbek.dhs.org/latest.jpg--> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message