File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
src/virtualenv/activation/bash Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,10 @@ deactivate () {
23
23
unset _OLD_VIRTUAL_PYTHONHOME
24
24
fi
25
25
26
- # This should detect bash and zsh, which have a hash command that must
27
- # be called to get it to forget past commands. Without forgetting
28
- # past commands the $PATH changes we made may not be respected
29
- if [ -n " ${BASH-} " ] || [ -n " ${ZSH_VERSION-} " ] ; then
30
- hash -r 2> /dev/null
31
- fi
26
+ # The hash command must be called to get it to forget past
27
+ # commands. Without forgetting past commands the $PATH changes
28
+ # we made may not be respected
29
+ hash -r 2> /dev/null
32
30
33
31
if ! [ -z " ${_OLD_VIRTUAL_PS1+_} " ] ; then
34
32
PS1=" $_OLD_VIRTUAL_PS1 "
@@ -79,9 +77,7 @@ pydoc () {
79
77
python -m pydoc " $@ "
80
78
}
81
79
82
- # This should detect bash and zsh, which have a hash command that must
83
- # be called to get it to forget past commands. Without forgetting
84
- # past commands the $PATH changes we made may not be respected
85
- if [ -n " ${BASH-} " ] || [ -n " ${ZSH_VERSION-} " ] ; then
86
- hash -r 2> /dev/null
87
- fi
80
+ # The hash command must be called to get it to forget past
81
+ # commands. Without forgetting past commands the $PATH changes
82
+ # we made may not be respected
83
+ hash -r 2> /dev/null
You can’t perform that action at this time.
0 commit comments