From a0e603bb21c919192cabdfa85dd919c230336c80 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 27 Jan 2009 14:34:44 +0100 Subject: [PROMPT] battery support --- 11_Colors.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '11_Colors.zsh') diff --git a/11_Colors.zsh b/11_Colors.zsh index 9e69c34..d072e55 100644 --- a/11_Colors.zsh +++ b/11_Colors.zsh @@ -7,7 +7,7 @@ ## You are encouraged to use, modify, and redistribute ## these files with or without this notice. ## -typeset -A prompt_colors git_colors mail_colors correct_colors +typeset -A prompt_colors git_colors mail_colors correct_colors battery_colors # I hate kik00l0l colorized prompts, so I'm using a way to # give a dominant color for each part of the prompt, each of @@ -66,6 +66,11 @@ set_prompt_colors () prompt_colors[cmd]="$color[none]" # command prompt prompt_colors[exec]="$color[none]" # command output + battery_colors[charging]="$color[cyan];$color[bold]" + battery_colors[full]="$color[none]" + battery_colors[uncharging]="$color[normal];$color[bold]" + battery_colors[critical]="$color[red];$color[bold]" + mail_colors[unread]="$color[yellow];$color[bold]" # mail received mail_colors[listes]="$my_generic;$color[bold]" # less important mail received -- cgit v1.2.3