Skip to content

openstack Segment

Description

This segment show openstack information of the form os_domain:os_project_name.

This segment is shown only when both variables OS_PROJECT_NAME and OS_USER_DOMAIN_NAME, usually done when sourcing openrc.sh file.

As I manage multiple OpenStack pool of ressources depending on project, I set variables OpenStack by project using direnv. Allowing me to avoind to type source openrc.sh command each time I enter the working project that use OpenStack.

To see how to use direnv for your folder, see Using direnv to setup environment-variables

Requirements

This segment has no requirement as it only show content of variables OS_PROJECT_NAME and OS_USER_DOMAIN_NAME.

Variables

Variables Default Description
OPENSTACK_CHAR Character to show before the segment content
OPENSTACK_FG white Foreground color of segment
OPENSTACK_BG black Background color of segment, only used by v2

Examples

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


Last update: December 2, 2021
Back to top