From 2f9cb6f18255cc7243a6ed2a0c452c1aee936fe1 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 30 Jun 2017 14:33:59 +0200 Subject: Modifs en vrac --- 12_Prompts.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '12_Prompts.zsh') diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 61db556..18a4221 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -138,7 +138,8 @@ __ssh_gpg_agents () AgentChar=${AGENT_WITH_KEYS:-✔} for i in $(echo $SSH_AGENT_KEYLIST | cut -d' ' -f3 ) do - AGENTS=$AGENTS$C_${_agent_colors[$i:t]:-$_agent_colors[has_keys]}$_C$AgentChar + i=$(( 0x$(crc32 =(echo ${i:t})) % (6*6) * 6 + 16 )) + AGENTS=$AGENTS$C_"1;38;5;$i"$_C$AgentChar done else AGENTCOLOR="empty" @@ -377,6 +378,9 @@ precmd() __update_prompt_elements __redefine_prompt + + # sanity + setterm -c on } -- cgit v1.2.3