]> git.lizzy.rs Git - i3-setup.git/commitdiff
fleckenstein.zsh-theme: Fix automatic user length
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 22 Nov 2021 12:05:46 +0000 (13:05 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 22 Nov 2021 12:05:46 +0000 (13:05 +0100)
fleckenstein.zsh-theme

index 2d896a7c4fc328e89788abd0e73dc4d61a2bf66a..5f4b1b01e3e710f3d575a05c1aa6ca8b887c1be6 100644 (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)---()--}}