Skip to content

hostname Segment

Description

This segment print the hostname of the computer.

Requirements

This segment has no requirement.

Variables

Variables Default Description
HOSTNAME_CHAR Character to show before the segment content
HOSTNAME_FG white Foreground color of the segment
HOSTNAME_BG black Background color of the segment, only used by v2

Examples

Prompt v1 Prompt v2
Full Version
hostname v1 full
hostname v2 full
Maximum Short Version
hostname v1 short
hostname v2 short


Last update: December 2, 2021
Back to top