From 364a673bbe591684a042038866b9d9c8acfcb054 Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 4 Jan 2013 16:03:04 +0900 Subject: [PATCH] Auto commit by The Sugar System. --- dot-files/_zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/' -- 2.40.0