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
F87407361: D18662.diff
Tue, Jul 2, 4:31 PM
F87365622: D18662.diff
Tue, Jul 2, 3:42 AM
Unknown Object (File)
Sun, Jun 30, 9:15 AM
Unknown Object (File)
Fri, Jun 28, 10:20 PM
Unknown Object (File)
May 8 2024, 1:44 AM
Unknown Object (File)
Mar 11 2024, 2:20 PM
Unknown Object (File)
Mar 11 2024, 2:19 PM
Unknown Object (File)
Mar 11 2024, 2:18 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.