Skip to content

Commit cd45c41

Browse files
committed
make sure virtualenvwrapper_cd always tries to do something, even when it cannot infer the current shell
1 parent 596f89b commit cd45c41

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

virtualenvwrapper.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ fi
117117
# cd because we are trying to change the state of the current shell,
118118
# so we use "builtin".
119119
function virtualenvwrapper_cd {
120-
if [ -n "${BASH:-}" ]
121-
then
122-
builtin \cd "$@"
123-
elif [ -n "${ZSH_VERSION:-}" ]
120+
if [ -n "${ZSH_VERSION:-}" ]
124121
then
125122
builtin \cd -q "$@"
123+
else
124+
builtin \cd "$@"
126125
fi
127126
}
128127

0 commit comments

Comments
 (0)