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 2
2
Release History
3
3
===============
4
4
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
+
5
11
3.1
6
12
7
13
- 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 {
918
918
virtualenvwrapper_verify_active_environment || return 1
919
919
if [ -f " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " ]
920
920
then
921
- local project_dir=$( cat " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " )
921
+ typeset project_dir=$( cat " $VIRTUAL_ENV /$VIRTUALENVWRAPPER_PROJECT_FILENAME " )
922
922
if [ ! -z " $project_dir " ]
923
923
then
924
924
cd " $project_dir "
You can’t perform that action at this time.
0 commit comments