Skip to content

Commit d5371da

Browse files
authored
Merge pull request #103 from bmundt6/cd-unknown-shell-fix
Fix for cd in unknown shells
2 parents 4dd3b93 + cd45c41 commit d5371da

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)