From e9f1bbeb509e2ee80dda1f9b72ff89479d63a1ba Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 21 Jun 2013 11:20:04 +0200 Subject: [Internal] Separates color from hbar, to make it usable outside zsh prompt. --- 01_Internal.zsh | 4 ++-- 12_Prompts.zsh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/01_Internal.zsh b/01_Internal.zsh index d150b45..b517c5e 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -394,8 +394,8 @@ __hbar() then __debug -n " Horizontal bar..." _COLUMNS_OLD=$COLUMNS - unset HBAR - HBAR=$C_$_prompt_colors[bar]$_C$T_ + HBAR_COLOR=$C_$_prompt_colors[bar]$_C$T_ + HBAR=$T_ for h in {1..$COLUMNS} do HBAR=${HBAR}$_tq_ diff --git a/12_Prompts.zsh b/12_Prompts.zsh index f5ec34f..7374bf2 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -299,7 +299,7 @@ __two_lines_prompt () ## Le prompt le plus magnifique du monde, et c'est le mien ! # Affiche l'user, l'host, le tty et le pwd. Rien que ça... # - PS1_=$(print -Pn '\r')$HBAR$(print -Pn '\r') + PS1_=$(print -Pn '\r')$HBAR_COLOR$HBAR$(print -Pn '\r') __debug "-----------------> taskbar..." for trigger in $PS1_TASKBAR do -- cgit v1.2.3