Page MenuHomeFreeBSD

Simplify the way we set the default sh(1) PS1. No functional changes.
ClosedPublic

Authored by trasz on Dec 27 2018, 2:15 PM.
Tags
None
Referenced Files
F166032440: D18662.id52337.diff
Tue, Aug 11, 5:40 AM
F165996475: D18662.id52373.diff
Mon, Aug 10, 9:35 PM
F165994788: D18662.id.diff
Mon, Aug 10, 9:23 PM
Unknown Object (File)
Sun, Aug 9, 4:48 PM
Unknown Object (File)
Sun, Aug 9, 10:56 AM
Unknown Object (File)
Sun, Aug 9, 10:55 AM
Unknown Object (File)
Sun, Aug 9, 7:39 AM
Unknown Object (File)
Sat, Aug 8, 6:06 PM
Subscribers

Details

Summary

Simplify the way we set the default sh(1) PS1. No functional changes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It seems like the idea is that we're stuck with that ugly \h/\$ bashism anyway so we might as well use it.

share/skel/dot.shrc
36 ↗(On Diff #52337)

Can the whoami invocation be changed to $USER? This would remove the final fork from the prompt setup.

share/skel/dot.shrc
36 ↗(On Diff #52337)

I'm not sure about that one. For example the $USER is not updated during 'su' (it is when using 'su -' instead).

jilles added inline comments.
share/skel/dot.shrc
36 ↗(On Diff #52337)

OK, no need to change it then.

This revision is now accepted and ready to land.Dec 28 2018, 2:41 PM
This revision was automatically updated to reflect the committed changes.