diff options
-rw-r--r-- | 01_Functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index 99b8296..58a4ba5 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -85,7 +85,7 @@ get_git_status () { local my_git_status - if ( echo ${(s:/:)PWD} | grep "\.\<git\>" >/dev/null ) + if [ "$(git-rev-parse --git-dir)" == "." ] then my_git_status="$COLOR_GIT_MANAGMENT" elif [ "$(git-diff --cached 2>&- | grep '^diff ')" != "" ] ; then |