Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2005 00:30:38 +0300
From:      Alex Yarmol <alex.yarmol@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Bash prompt
Message-ID:  <f1b7642105071714301ee2a19b@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi, dear FreeBSD developers etc. :)

I have a question.

How I can chage my bash prompt to this:

[user@host directory-name(e. g. "alex" for /usr/home/alex)]$

I assume that I need to do that:

export PS1=3D'[\u@\h \(here i don't know what to do, i assume, that I
need to write "\p" or "\P", but it's not working)]\$

I've try to read "man bash", but didn't find what I want :(

Help me please.

Best regards, Alex Yarmol



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f1b7642105071714301ee2a19b>