[Bug 261203] New: make PS1 overridable
https://bugzilla.novell.com/show_bug.cgi?id=261203 Summary: make PS1 overridable Product: openSUSE 10.3 Version: Alpha 2plus Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: werner@novell.com ReportedBy: mvidner@novell.com QAContact: qa@suse.de Hello, Shell Guardian :) Currently /etc/bash.bashrc from aaa_base.rpm sets PS1 to something useful ($(ppwd \l)\u@\h:\w>). This can be of course overridden in ~/.bashrc for all instances of my shell but sometimes I would like to set it specially for a single instance (to signal that that instance has a different environment). Currently: mvidner@valkyrie:~$ PATH=/my/special/path:$PATH PS1="special> " sh -i -c 'echo $PS1' $(ppwd \l)\u@\h:\w> With patch (attachment follows): martin@totoro:~> PATH=/my/special/path:$PATH PS1="special> " sh -i -c 'echo $PS1' special> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=261203 ------- Comment #1 from mvidner@novell.com 2007-04-05 04:59 MST ------- Created an attachment (id=129253) --> (https://bugzilla.novell.com/attachment.cgi?id=129253&action=view) bash.bashrc.ps1.diff (It would be nice if we could spare the extra processes of env or even grep but I do not know how) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=261203 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from werner@novell.com 2007-04-25 08:16 MST ------- added feature without external programs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com