浏览代码

Merge pull request #2138 from Profpatsch/theme-agnoster

More expressive symbols for git and mercurial.
Robby Russell 10 年之前
父节点
当前提交
042ee6e6ed
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      themes/agnoster.zsh-theme

+ 2 - 2
themes/agnoster.zsh-theme

@@ -90,7 +90,7 @@ prompt_git() {
     zstyle ':vcs_info:*' formats ' %u%c'
     zstyle ':vcs_info:*' actionformats '%u%c'
     vcs_info
-    echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_}"
+    echo -n "${ref/refs\/heads\//± }${vcs_info_msg_0_}"
   fi
 }
 
@@ -110,7 +110,7 @@ prompt_hg() {
 				# if working copy is clean
 				prompt_segment green black
 			fi
-			echo -n $(hg prompt " {rev}@{branch}") $st
+			echo -n $(hg prompt " {rev}@{branch}") $st
 		else
 			st=""
 			rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')