Enable/disable bash-prompt PS for users' .bashrc file

Bug #944641 reported by Sergey Kryazhevskikh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-prompt
Won't Fix
Wishlist
Sergey Kryazhevskikh

Bug Description

When bash-promt is installed and configured through /etc/default/bash-prompt.config file, it needs to comment settings for PS1 in user .bashrc file.

It should be done automatically by dpkg-reconfigure bash-prompt or by root.

It needs bash script to comment or to uncomment settings for PS1 in users' .bashrc file. Script should do this work for user groups.

Changed in bash-prompt:
importance: Undecided → Wishlist
assignee: nobody → Sergey Kryazhevskikh (soliverr)
milestone: none → rc1
Changed in bash-prompt:
milestone: rc1 → rc2
milestone: rc2 → none
Changed in bash-prompt:
status: New → In Progress
Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

Default actions should be:
1 read bash-prompt config file
2 enable/disable PS1/PROMPT_COMMAND for given user/group or all

User can disable bash-prompt at all. It should be done by sysconfig/bash-prompt ON/OFF flag

Changed in bash-prompt:
milestone: none → rc3
Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

Here is example for --set|--unset environment variables to make 'look' test

Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

If bash-prompt is enabled and configured the environment contains all USER_ or GROUP_ variables for PS1&PROMPT_COMMAND.

This can be used to check a look for given user/group in current session with `--set' option.

Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

Here is script to incorporate into distribution. It's not control PROMPT_COMMAND awhile

Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

Moved to GitHub

Changed in bash-prompt:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.