summaryrefslogtreecommitdiff
path: root/11_Colors.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-06-12 17:56:51 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-06-13 11:34:49 +0200
commit0389ee35965add0d260f83cd145cb6fe20016aa2 (patch)
tree0c893e93f10c0c01525a541e96e37d54ad050515 /11_Colors.zsh
parent1a0b3979930861b6f8eabbcc9f4d6bd675ab957b (diff)
Anti-concurrential git-status for prompt update...
When a .git folder contains to many blobs and takes too long time to get the status, instead of hanging up every shell, just let one of these (the first, of course) getting the current git status, the others will take the previous one, else a 'running' color status.
Diffstat (limited to '11_Colors.zsh')
-rw-r--r--11_Colors.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/11_Colors.zsh b/11_Colors.zsh
index 73f94e2..a610064 100644
--- a/11_Colors.zsh
+++ b/11_Colors.zsh
@@ -73,6 +73,7 @@ set_prompt_colors ()
git_colors[cached_and_not_up_to_date]="$prompt_colors[not_up_to_date];$color[bold]"
git_colors[not_up_to_date]="$prompt_colors[not_up_to_date];$color[normal]" # git changes in working tree
git_colors[up_to_date]="$prompt_colors[up_to_date]" # git up-to-date
+ git_colors[running]="$color[magenta]" # currently running git-status..
}
set_prompt_colors