File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 22Release History
33===============
44
5+ dev
6+
7+ - Make ``project_dir `` a local variable so that
8+ :ref: `command-cdproject ` does not interfere with other variables
9+ the user might have set. (contributed by :bbuser: `slackorama `)
10+
5113.1
612
713 - Fix a problem with activation hooks when associating a new
Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ function cdproject {
918918 virtualenvwrapper_verify_active_environment || return 1
919919 if [ -f " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " ]
920920 then
921- local project_dir=$( cat " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " )
921+ typeset project_dir=$( cat " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " )
922922 if [ ! -z " $project_dir " ]
923923 then
924924 cd " $project_dir "
You can’t perform that action at this time.
0 commit comments