fleckenstein.zsh-theme: Fix automatic user length

This commit is contained in:
Elias Fleckenstein 2021-11-22 13:05:46 +01:00
parent 1047f3dfee
commit feb3c228be
No known key found for this signature in database
GPG Key ID: 06927A5199D6C9B2

View File

@ -19,8 +19,8 @@ function theme_precmd {
USER_ALIAS=$USER
fi
if [[ "USER_ALIAS_LENGTH" == "" ]]; then
USER_ALIAS_LENGTH=${#$USER_ALIAS}
if [[ "$USER_ALIAS_LENGTH" == "" ]]; then
USER_ALIAS_LENGTH=${#${USER_ALIAS}}
fi
local promptsize=${#${(%):-------[@%m:%l)---()--}}