d7418f2b666adf82aaad9ab22a8727f2272e55ec

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2253 from eddiemonge/patch-1

no tabs in a space-d file

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index 762f63c5b6b20898814aa5461723209cecfc75c6..01cdc80e50364478c59274acd4925f4084ce611b 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -95,38 +95,38 @@ prompt_git() {
 6 }
 7 
 8 prompt_hg() {
 9-	local rev status
10-	if $(hg id >/dev/null 2>&1); then
11-		if $(hg prompt >/dev/null 2>&1); then
12-			if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
13-				# if files are not added
14-				prompt_segment red white
15-				st='±'
16-			elif [[ -n $(hg prompt "{status|modified}") ]]; then
17-				# if any modification
18-				prompt_segment yellow black
19-				st='±'
20-			else
21-				# if working copy is clean
22-				prompt_segment green black
23-			fi
24-			echo -n $(hg prompt "☿ {rev}@{branch}") $st
25-		else
26-			st=""
27-			rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
28-			branch=$(hg id -b 2>/dev/null)
29-			if `hg st | grep -Eq "^\?"`; then
30-				prompt_segment red black
31-				st='±'
32-			elif `hg st | grep -Eq "^(M|A)"`; then
33-				prompt_segment yellow black
34-				st='±'
35-			else
36-				prompt_segment green black
37-			fi
38-			echo -n "☿ $rev@$branch" $st
39-		fi
40-	fi
41+  local rev status
42+  if $(hg id >/dev/null 2>&1); then
43+    if $(hg prompt >/dev/null 2>&1); then
44+      if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
45+        # if files are not added
46+        prompt_segment red white
47+        st='±'
48+      elif [[ -n $(hg prompt "{status|modified}") ]]; then
49+        # if any modification
50+        prompt_segment yellow black
51+        st='±'
52+      else
53+        # if working copy is clean
54+        prompt_segment green black
55+      fi
56+      echo -n $(hg prompt "☿ {rev}@{branch}") $st
57+    else
58+      st=""
59+      rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
60+      branch=$(hg id -b 2>/dev/null)
61+      if `hg st | grep -Eq "^\?"`; then
62+        prompt_segment red black
63+        st='±'
64+      elif `hg st | grep -Eq "^(M|A)"`; then
65+        prompt_segment yellow black
66+        st='±'
67+      else
68+        prompt_segment green black
69+      fi
70+      echo -n "☿ $rev@$branch" $st
71+    fi
72+  fi
73 }
74 
75 # Dir: current working directory