From 9fffc59cf3f29091cc012ec7e785801a3b4f8625 Mon Sep 17 00:00:00 2001 From: Jacobi Carter Date: Tue, 25 Sep 2012 19:00:51 -0500 Subject: [PATCH] Fix. --- zsh/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/prompt b/zsh/prompt index edc176c..f1be9a4 100755 --- a/zsh/prompt +++ b/zsh/prompt @@ -101,7 +101,7 @@ git_prompt_status() { } function updateprompt () { if havegit ; then - local gitdir="$(readlink -m $(git rev-parse --git-dir 2>/dev/null))" + local gitdir="$(python -c 'import os,sys;print os.path.realpath(sys.argv[1])' $(git rev-parse --git-dir 2>/dev/null))" local repodir="$(dirname "${gitdir}")" local reponame="$(basename "${repodir}")" local curdir="$(pwd)"