Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 756358

Summary: sys-apps/portage: Document $HOSTNAME in man page
Product: Portage Development Reporter: John Hardin <jhardin>
Component: DocumentationAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: jstein, mattst88
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Potential minimal fix

Description John Hardin 2020-11-24 16:20:27 UTC
I have a handful of Gentoo boxes that I maintain, and I regularly find myself running emerges on some or all of them via ssh at the same time (e.g. for weekly updates) in a tabbed gnome-terminal window.

It gets a bit confusing because all of the sessions' titles look much the same.

It would be nice if the terminal window title text displayed while emerge was running included the hostname - for example, instead of:

  Jobs: 20 of 21 complete, 1 running Load avg: 5.98, 6.65, 6.74

it was:

  Jobs@athena: 20 of 21 complete, 1 running Load avg: 5.98, 6.65, 6.74

...where "athena" is the hostname.

This could potentially be put behind a command-line option vs. being default behavior.

Potential simple fix attached.

Reproducible: Always

Steps to Reproduce:
1. Open sessions to three different Gentoo boxes in a tabbed terminal window
2. Merge lots of stuff on all three boxes simultaneously
3. Look at the tab labels in the terminal window - which machine is which?
Comment 1 John Hardin 2020-11-24 16:21:14 UTC
Created attachment 674743 [details, diff]
Potential minimal fix
Comment 2 John Hardin 2020-11-24 16:48:52 UTC
I was just informed of the existing $HOSTNAME behavior. That's sufficient, but it should be documented on the emerge man page...