FS#25220 - [bash] Remove PS1 export from /etc/bash.bashrc

Attached to Project: Arch Linux
Opened by David Rheinsberg (dvdhrm) - Friday, 22 July 2011, 15:02 GMT
Last edited by Allan McRae (Allan) - Friday, 22 July 2011, 22:40 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi

I want to export a common PS1 line for all users on the system. My preferred way would be using /etc/profile.d/ and creating a new script inside this directory. However, the global bash-config /etc/bash.bashrc is read AFTER everything inside /etc/profile.d/ by /etc/profile so the bash-config overwrites all PS1-PS4 lines. In recent versions it was possible to add a /etc/bash.bashrc.local file, but this has been removed now and I wonder how to set such global options now. I'd prefer not editing /etc/bash.bashrc to avoid conflicts with bash-updates.
How about setting PS1 inside this file only when it is not set, yet?

Regards
David
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 22 July 2011, 22:40 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Edit /etc/bash.bashrc. It is backed up for a reason.

Loading...