diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-01-30 15:01:30 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-01-30 15:01:30 +0100 |
commit | 9fdd7da7cae3db0e278c0ad1f62a84e72389a9a2 (patch) | |
tree | 9d4308664b5769f722911de23364a97b2a69e23c /12_Prompts.zsh | |
parent | 10978e45494d22847418d490e14e8137bfe819a2 (diff) | |
parent | 97ae95fec62aacda51b461086b46dc0310e5f00e (diff) |
Merge commit 'origin/master'
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 3048c0c..43f1304 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -39,6 +39,13 @@ preexec () local lines="$(expand_text "$PROMPT$1" | sed "s/\\(.\{$COLUMNS\}\\)/\\1\\n/g" | wc -l)" prompt_colors[date]=$date_colors[exec] set_prompt_date + + spaceleft=$(($COLUMNS - $AGENTSSIZE - $MAILSTATSIZE - $DATESIZE - $BATTERYSIZE)) + unset HBAR + for h in {1..$spaceleft} + do + HBAR=$HBAR- + done redisplay_prompt local string="$(expand_text "$PROMPT$1")" @@ -177,7 +184,6 @@ update_prompt() [ "$DEBUG" = "yes" ] && echo -n " Horizontal bar..." # First line of prompt, calculation of the remaining place spaceleft=$(($COLUMNS - $ERRORSIZE - $AGENTSSIZE - $MAILSTATSIZE - $DATESIZE - $BATTERYSIZE)) - unset HBAR for h in {1..$spaceleft} do |