Summary: | PS1 variable should contain the current path | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Florian Effenberger <floeff> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Florian Effenberger
2004-02-23 03:38:31 UTC
why ? It makes sense to see the current path :-) the default user PS1 contains the path already 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. 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. Okay, its up to you. Was just a suggestion ;-) Maybe you could document in /etc/profile on how to show the full path. `man bash` and go to the section entitled PROMPTING seems that PS1 could be shortened down to PS1='\e[01;31m\h \e[01;34m\W \$ \e[00m' |