Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42570 - PS1 variable should contain the current path
Summary: PS1 variable should contain the current path
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-23 03:38 UTC by Florian Effenberger
Modified: 2004-02-25 11:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Effenberger 2004-02-23 03:38:31 UTC
The PS1 variable should contain the current path

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Minati jean michel 2004-02-23 06:19:11 UTC
why ?
Comment 2 Florian Effenberger 2004-02-23 06:35:26 UTC
It makes sense to see the current path :-)
Comment 3 SpanKY gentoo-dev 2004-02-23 14:08:59 UTC
the default user PS1 contains the path already
Comment 4 Florian Effenberger 2004-02-23 14:12:34 UTC
With the default installation, root has

PS1="\\[\\033[01;31m\\]\\h \\[\\033[01;34m\\]\\W \\\$ \\[\\033[00m\\]"

which does not show the *FULL* (e.g. `pwd') path.
Comment 5 Joshua Kinard gentoo-dev 2004-02-23 14:19:11 UTC
Eh, if you show the full path, your prompt can get pretty large.  Just showing the cwd is good enough; users can easily just type 'pwd' to get the full path.
Comment 6 Florian Effenberger 2004-02-23 14:28:46 UTC
Okay, its up to you. Was just a suggestion ;-)
Maybe you could document in /etc/profile on how to show the full path.
Comment 7 SpanKY gentoo-dev 2004-02-23 19:55:23 UTC
`man bash` and go to the section entitled PROMPTING
Comment 8 solar (RETIRED) gentoo-dev 2004-02-25 11:48:40 UTC
seems that PS1 could be shortened down to
PS1='\e[01;31m\h \e[01;34m\W \$ \e[00m'