This commit is contained in:
Òscar Vilaplana 2014-12-15 00:31:22 +00:00
commit c448b36dcd
2 changed files with 14 additions and 31 deletions

View file

@ -11,6 +11,9 @@ if (( $+commands[$virtualenvwrapper] )); then
WORKON_CWD=1
# Check if this is a Git repo
PROJECT_ROOT=`git rev-parse --show-toplevel 2> /dev/null`
if (( $? != 0 )); then
PROJECT_ROOT=`hg prompt '{root}' 2>/dev/null`
fi
if (( $? != 0 )); then
PROJECT_ROOT="."
fi