fa85b4d6ee4817a91bece2987f72da22ffe007a4

Author
Profpatsch <mail@profpatsch.de>
Committer
Profpatsch <mail@profpatsch.de>
Date

Message

More expressive symbols for git and mercurial.

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index c7a59ad0d67951960f1a9edb4544bd1da6aa849e..7df4ec1e828289dce2889eff80bc27200475e091 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')