From: PHO Date: Fri, 4 Jan 2013 07:03:04 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=sugar.git;a=commitdiff_plain;h=364a673bbe591684a042038866b9d9c8acfcb054 Auto commit by The Sugar System. --- diff --git a/dot-files/_zshrc b/dot-files/_zshrc index 11755ad..d651aa4 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -79,7 +79,7 @@ function preexec() { # Hook } function precmd() { # Hook - local dirinfo=$(print_directory_info $(pwd)) + local dirinfo="$(print_directory_info $(pwd))" case $dirinfo in "") @@ -92,7 +92,7 @@ function precmd() { # Hook function print_directory_info() { local absdir=$1 - if [[ -d $absdir/.git ]] then + if [[ -r $absdir/.git ]] then # Git git branch --no-color 2>/dev/null \ | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'