Byobu's PS1 should mark the root user

Bug #1259621 reported by quazgar on 2013-12-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I like Byobu's own PS1, but am missing one great feature: Visually marking when the UID is 0, i.e. the use is acting as root. This is typically done by simply changing the username color to red (31).

Dustin Kirkland  (kirkland) wrote :

I don't know that I'd use red here, but maybe bold? Or underline?

Can you send a patch?

Changed in byobu:
importance: Undecided → Wishlist
status: New → Incomplete
Dustin Kirkland  (kirkland) wrote :

I handle this now by prepending an exclamation point (!) in front of the root user, like so:


Changed in byobu:
status: Incomplete → Fix Committed
Dustin Kirkland  (kirkland) wrote :

Actually, strike that. I didn't like the exclamation point after all.

Instead, I just added support to our fancy color prompt to just use a # at the end, if we're root. Thanks!

Dustin Kirkland  (kirkland) wrote :

bzr commit -m '* usr/share/byobu/profiles/bashrc: LP: #1259621
  - ensure that if the root user is in byobu, and we're using the
    fancy new colored prompt, that we use a # to indicate root' --fixes 'lp:1259621'
Committing to: /local/media/src/byobu/byobu/
modified debian/changelog
modified usr/share/byobu/profiles/bashrc
Committed revision 2318.

Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers