shell: Limit the displayed width of hostnames.

To maintain steady width and avoid jumping ui.

Closes #1434
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>