Permalink
Browse files

Renamed function for accuracy

  • Loading branch information...
daotoad committed Sep 10, 2017
1 parent ca93d2c commit cf4ad205bd97b9da5b6384e31d1b90b31043f59f
Showing with 3 additions and 3 deletions.
  1. +3 −3 helper/virtualenv/script
View
@@ -10,7 +10,7 @@
#
###############################################################################
function have_deactivate() {
function run_deactivate_if_present() {
if [[ -n $ZSH_VERSION ]]; then
echo '[ "`type -w deactivate`" = "function" ] && deactivate'
else
@@ -23,8 +23,8 @@ case $action in
init) case $1 in
"") echo "Usage: smartcd helper run virtualenv init <virtualenv base>";;
*) autostash PATH PYTHONHOME PS1 VIRTUAL_ENV
eval have_deactivate
smartcd on-leave have_deactivate
eval run_deactivate_if_present
smartcd on-leave run_deactivate_if_present
if [ ! -e "$1" ]; then
virtualenv "$1"
fi

0 comments on commit cf4ad20

Please sign in to comment.