Re: Question Regarding Directory Prompts
On Thu, Feb 07, 2008 at 05:40:01PM +0000, Tzafrir Cohen wrote:
> On Thu, Feb 07, 2008 at 11:01:20AM -0500, Thomas H. George wrote:
> > The prompt always shows the entire chain to the current directory. My
> > memory says this was not always so. There is nothing in .bashrc
> > regarding this. Is it set somewhere else?
> The default value of PS1 (the prompts in bourne shells) is something in
> the lines of:
> In the manual page of bash, under 'PROMPTING' you'll find their
> meanings. Specifically, \w means:
> the current working directory, with $HOME abbreviated
> with a tilde
> So you might have seen once the path truncated as you were at your home
> > The reason I ask is that I am trying to work with a One Laptop per Child
> > (olpc) laptop and the prompt never shows even the current directory.
> > The olpc is fedora based but I'm trying to get it to behave more like
> > Debian. My assumption is that aside from a few idiosyncracies fedora is
> > linux.
> Or a different value to PS1 . Try the following in your terminal:
> echo $PS1
> PS1="\d $PS1"
> echo "just to see the new prompt"
> Tzafrir Cohen | email@example.com | VIM is
> http://tzafrir.org.il | | a Mutt's
> firstname.lastname@example.org | | best
> ICQ# 16849754 | | friend
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com