Skip to content

Commit 187d11a

Browse files
committed
Skiping re-initialization in subshells breaks tab completion, so go ahead and take the performance hit. Closes #121
1 parent 44c816b commit 187d11a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

virtualenvwrapper.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ function virtualenvwrapper_setup_tab_completion {
211211

212212
# Set up virtualenvwrapper properly
213213
function virtualenvwrapper_initialize {
214-
if [ ! -z "$VIRTUALENVWRAPPER_INITIALIZED" ]
215-
then
216-
return 0
217-
fi
218214
export WORKON_HOME="$(virtualenvwrapper_derive_workon_home)"
219215

220216
virtualenvwrapper_verify_workon_home -q || return 1
@@ -240,8 +236,6 @@ function virtualenvwrapper_initialize {
240236

241237
virtualenvwrapper_setup_tab_completion
242238

243-
export VIRTUALENVWRAPPER_INITIALIZED=1
244-
245239
return 0
246240
}
247241

0 commit comments

Comments
 (0)