comparison .bash_overrides @ 564:047a53a8fbad

py3
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 19 Dec 2013 18:03:05 -0800
parents 501169756134
children 753b1c2bd64c
comparison
equal deleted inserted replaced
563:2daf6543e42c 564:047a53a8fbad
52 ENV="${VIRTUAL_ENV}" 52 ENV="${VIRTUAL_ENV}"
53 fi 53 fi
54 54
55 if [ -n "${ENV}" ] 55 if [ -n "${ENV}" ]
56 then 56 then
57 FULLPWD=$(python -c 'import os; print os.getcwd()') 57 FULLPWD=$(python -c 'import os; print (os.getcwd())')
58 if (( ! `expr match "${FULLPWD}" "${ENV}"` )) 58 if (( ! `expr match "${FULLPWD}" "${ENV}"` ))
59 then 59 then
60 if [[ -n "`type -t deactivate`" ]] 60 if [[ -n "`type -t deactivate`" ]]
61 then 61 then
62 deactivate 62 deactivate