diff options
-rw-r--r-- | 01_Functions.zsh | 2 | ||||
-rw-r--r-- | 12_Prompts.zsh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index cc37ba8..7a1fbd2 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -260,7 +260,9 @@ set_prompt_colors () mail_colors[listes]="$prompt_colors[generic];$color[bold]" # less important mail received agent_colors[empty]="$prompt_colors[soft_generic]" + agent_colors[remote_empty]="$color[bold];$color[black]" agent_colors[has_keys]="$color[bold];$color[yellow]" + agent_colors[has_remote_keys]="$color[bold];$color[red]" prompt_colors[up_to_date]="$prompt_colors[generic]" # up-to-date prompt_colors[not_up_to_date]="$color[green];$color[bold]" # not up to date diff --git a/12_Prompts.zsh b/12_Prompts.zsh index f44d124..62ac125 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -138,10 +138,10 @@ update_prompt() # That's a forwarded agent if [ "$SSH_AGENT_KEYLIST" != "" ] then - AGENTCOLOR="has_keys" + AGENTCOLOR="has_remote_keys" AGENTCHAR=${AGENT_SOCK_WITH_KEYS:-$( [ $_is_multibyte_compliant ] && echo "●" || echo "@" )} else - AGENTCOLOR="empty" + AGENTCOLOR="remote_empty" AGENTCHAR=${AGENT_SOCK_EMPTY:-$( [ $_is_multibyte_compliant ] && echo "○" || echo "@" )} fi fi |