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, Feb 8, 11:21 AM
Unknown Object (File)
Sat, Feb 7, 11:01 PM
Unknown Object (File)
Sat, Feb 7, 4:04 PM
Unknown Object (File)
Fri, Jan 30, 4:25 PM
Unknown Object (File)
Dec 22 2025, 6:51 PM
Unknown Object (File)
Nov 25 2025, 9:40 PM
Unknown Object (File)
Nov 23 2025, 11:17 AM
Unknown Object (File)
Nov 22 2025, 2:00 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.