]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Fri, 25 Sep 2009 10:05:00 +0000 (19:05 +0900)
committerPHO <pho@cielonegro.org>
Fri, 25 Sep 2009 10:05:00 +0000 (19:05 +0900)
dot-files/_zshrc

index bcbe986c3af50b7f6fd89d2fbe854a1be5f56697..b22c34f2bdd7d0982889d07a4ca85fc3a00cbce6 100644 (file)
@@ -93,9 +93,9 @@ function print_directory_info() {
         git branch --no-color 2>/dev/null \
             | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
 
-    elif [[ -d $absdir/.hg ]] then
+    elif [[ -r $absdir/.hg/branch ]] then
         # Hg
-        hg branch 2>/dev/null
+        cat $absdir/.hg/branch
 
     elif [[ -d $absdir/_darcs ]] then
         # Darcs