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, Oct 19, 2:52 PM
Unknown Object (File)
Fri, Oct 17, 5:57 AM
Unknown Object (File)
Mon, Oct 13, 10:26 AM
Unknown Object (File)
Sat, Oct 11, 6:06 AM
Unknown Object (File)
Sep 22 2025, 1:59 AM
Unknown Object (File)
Sep 21 2025, 5:36 AM
Unknown Object (File)
Sep 16 2025, 9:31 PM
Unknown Object (File)
Sep 16 2025, 4:29 AM
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.