1diff --git a/boban.zsh-theme b/boban.zsh-theme
2index 58581a958393de31d1c390d49fcf17d34ed93da4..c24dd5548202a433a77c555dc9c54fa8ae2f2877 100644
3--- a/boban.zsh-theme
4+++ b/boban.zsh-theme
5@@ -135,41 +135,6 @@ prompt_git() {
6 fi
7 }
8 9-prompt_hg() {
10- local rev status
11- if $(hg id >/dev/null 2>&1); then
12- if $(hg prompt >/dev/null 2>&1); then
13- if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
14- # if files are not added
15- prompt_segment red white
16- st='±'
17- elif [[ -n $(hg prompt "{status|modified}") ]]; then
18- # if any modification
19- prompt_segment yellow black
20- st='±'
21- else
22- # if working copy is clean
23- prompt_segment green black
24- fi
25- echo -n $(hg prompt "☿ {rev}@{branch}") $st
26- else
27- st=""
28- rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
29- branch=$(hg id -b 2>/dev/null)
30- if `hg st | grep -q "^\?"`; then
31- prompt_segment red black
32- st='±'
33- elif `hg st | grep -q "^[MA]"`; then
34- prompt_segment yellow black
35- st='±'
36- else
37- prompt_segment green black
38- fi
39- echo -n "☿ $rev@$branch" $st
40- fi
41- fi
42-}
43-
44 # Dir: current working directory
45 prompt_dir() {
46 if [[ -w "$PWD" ]]; then
47@@ -215,7 +180,6 @@ build_prompt() {
48 prompt_context
49 prompt_dir
50 prompt_git
51- prompt_hg
52 prompt_end
53 }
54