diff options
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index b3d2ed7..62febfb 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -83,10 +83,10 @@ old_precmd() [ "$DEBUG" = "yes" ] && echo -n " Horizontal bar..." # First line of prompt, calculation of the remaining place - spaceleft=$((1 + $COLUMNS - $ERRORSIZE - $MAILSTATSIZE - $DATESIZE)) + spaceleft=$(($COLUMNS - $ERRORSIZE - $MAILSTATSIZE - $DATESIZE)) unset HBAR - for h in {1..$(($spaceleft - 1))} + for h in {1..$spaceleft} do HBAR=$HBAR- done |