diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-06-21 11:20:04 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-06-21 11:25:30 +0200 |
commit | e9f1bbeb509e2ee80dda1f9b72ff89479d63a1ba (patch) | |
tree | b9634931c9b41a50923ad84fdef049712ca404a6 | |
parent | 0ad5de36930891cc366d23443f8ab90485094134 (diff) |
[Internal] Separates color from hbar, to make it usable outside zsh prompt.
-rw-r--r-- | 01_Internal.zsh | 4 | ||||
-rw-r--r-- | 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 |