Skip to content

Commit

Permalink
Renamed function for accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
daotoad committed Sep 10, 2017
1 parent ca93d2c commit cf4ad20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helper/virtualenv/script
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
###############################################################################

function have_deactivate() {
function run_deactivate_if_present() {
if [[ -n $ZSH_VERSION ]]; then
echo '[ "`type -w deactivate`" = "function" ] && deactivate'
else
Expand All @@ -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
Expand Down

0 comments on commit cf4ad20

Please sign in to comment.