File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ Via `mae <http://www.blogger.com/profile/10879711379090472478>`__:
117
117
This is supposed to be executed after workon, that is as a
118
118
``postactivate `` hook. It basically overrides ``cd `` to know about the
119
119
VENV so instead of doing ``cd `` to go to ``~ `` you will go to the venv
120
- root, IMO very handy and I can't live without it anymore. if you pass
120
+ root, IMO very handy and I can't live without it anymore. If you pass
121
121
it a proper path then it will do the right thing.
122
122
123
123
::
@@ -132,3 +132,12 @@ it a proper path then it will do the right thing.
132
132
}
133
133
134
134
cd
135
+
136
+ And to finally restore the default behaviour of ``cd `` once you
137
+ bailout of a VENV via a ``deactivate `` command, you need to add this
138
+ as a ``postdeactivate `` hook (`source
139
+ <http://github.com/kdeldycke/dotfiles/commit/80470b> `_)::
140
+
141
+ cd () {
142
+ builtin cd "$@"
143
+ }
You can’t perform that action at this time.
0 commit comments