Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35219 - PS1 and other variables should not be in profile, but in bashrc
Summary: PS1 and other variables should not be in profile, but in bashrc
Status: RESOLVED DUPLICATE of bug 26952
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-06 12:34 UTC by Luke-Jr
Modified: 2005-07-17 13:06 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 Luke-Jr 2003-12-06 12:34:07 UTC
~/.bash_profile and /etc/profile are only sourced by a BASH login shell. However, some variables such as PS1 should be set for all interactive shells since they are reset by default in new shells. Therefore, I recommend moving the setting of PS1 (and any other variables that may need changing based on the shell) to a /etc/bashrc file and have it sourced by /etc/skel/.bashrc so it runs by default. It may also be a good idea to source it in /etc/profile so current systems do not lose their PS1 with this change.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-06 13:45:11 UTC

*** This bug has been marked as a duplicate of 26952 ***