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
Unknown Object (File)
Sun, Mar 8, 7:54 AM
Unknown Object (File)
Sun, Mar 8, 1:37 AM
Unknown Object (File)
Tue, Mar 3, 5:14 PM
Unknown Object (File)
Tue, Mar 3, 9:56 AM
Unknown Object (File)
Tue, Mar 3, 12:03 AM
Unknown Object (File)
Sun, Feb 8, 11:21 AM
Unknown Object (File)
Feb 7 2026, 11:01 PM
Unknown Object (File)
Feb 7 2026, 4:04 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.