From: PHO Date: Fri, 25 Sep 2009 10:05:00 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=7e08bdc3f1774f6d101df81b4170f421c8de361a;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_zshrc b/dot-files/_zshrc index bcbe986..b22c34f 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -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