Opened 11 years ago
Closed 8 years ago
#10687 closed enhancement (fixed)
Add current architecture to PS1
Reported by: | puckipedia | Owned by: | puckipedia |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | - General | Version: | R1/Development |
Keywords: | bash, ps1, getarch, bin | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
This patch changes two things:
- It makes
setarch
add the current arch to the start of PS1 (disableable with the-n
(--no-ps1
) argument) - It changes
/etc/profile
to add the starting arch to the PS1 (orunknown
ifgetarch
isn't available)
It looks like this:
Welcome to the Haiku shell. [x86_gcc2] ~> setarch x86 [x86] [x86_gcc2] ~> getarch x86 [x86] [x86_gcc2] ~> setarch x86_gcc2 [x86_gcc2] [x86] [x86_gcc2] ~> exit exit [x86] [x86_gcc2] ~> exit exit [x86_gcc2] ~> getarch x86_gcc2
Attachments (2)
Change History (8)
by , 11 years ago
Attachment: | 0001-setarch-profile-Contain-the-current-arch-in-PS1.-Pro.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
by , 11 years ago
Attachment: | 0001-setarch-Inverse-arch-messages.patch added |
---|
Switch it up! (Apply after the other!)
comment:2 by , 11 years ago
Okay, I switched it up: It is now "Oldest arch left, newest right":
[x86_gcc2] [x86] ~> getarch x86 [x86_gcc2] [x86] ~>
follow-up: 4 comment:3 by , 11 years ago
I think this is only useful when the current selected architecture isn't the default one.
follow-up: 5 comment:4 by , 11 years ago
Replying to korli:
I think this is only useful when the current selected architecture isn't the default one.
You can just remove the changes made to /etc/profile, will do that in a moment
comment:5 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Replying to puckipedia:
will do that in a moment
That is a very long moment! Any plans on finishing this?
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in a different way in hrev50540.
The patch!