042ee6e6eddd621ca6fa5853f3a9f1bdb5b4cc08

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

Message

Merge pull request #2138 from Profpatsch/theme-agnoster

More expressive symbols for git and mercurial.

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index 3ad4eff1f256653e43f5bd8668c28e8eec0c95e5..2db565266834e6fc01c1f4827ffb6868a37077dd 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -90,7 +90,7 @@ prompt_git() {
 6     zstyle ':vcs_info:*' formats ' %u%c'
 7     zstyle ':vcs_info:*' actionformats '%u%c'
 8     vcs_info
 9-    echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_}"
10+    echo -n "${ref/refs\/heads\//± }${vcs_info_msg_0_}"
11   fi
12 }
13 
14@@ -110,7 +110,7 @@ prompt_hg() {
15 				# if working copy is clean
16 				prompt_segment green black
17 			fi
18-			echo -n $(hg prompt " {rev}@{branch}") $st
19+			echo -n $(hg prompt "☿ {rev}@{branch}") $st
20 		else
21 			st=""
22 			rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')