1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 03:59:25 +00:00

Fix os-info and update prompt

This commit is contained in:
2019-06-21 18:42:37 +02:00
parent 9f86f48ae6
commit e6e5e4d68f
2 changed files with 7 additions and 4 deletions

View File

@ -12,11 +12,11 @@ local tenant_formatted
unset os_info
typeset -gA os_info
[[ -n "${OS_PROJECT_NAME+1}" ]] && tenant="[${OS_PROJECT_NAME}]"
[[ -n "${OS_PROJECT_NAME+1}" ]] && tenant="${OS_PROJECT_NAME}"
if [[ "$tenant" != (none|) ]]; then
zstyle -s ':prezto:module:openstack:info:tenant' format 'tenant_format'
zformat -f tenant_formatted "$tenant_format" "s:$tenant"
zformat -f tenant_formatted "$tenant_format" "v:$tenant"
os_info[tenant]="$tenant_formatted"
fi