From ece7ee3286d5442591c5d75235d611e5bd284be1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 21 Jan 2017 14:17:53 -0500 Subject: [PATCH] cleanup --- pipenv/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 7d6a6b7b..77499b22 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -440,12 +440,14 @@ def python(args): @click.command() def shell(): - shell = os.environ['SHELL'] # Spawn the Python process, and iteract with it. - # click.echo(crayons.yellow('Spawning virtualenv shell.')) + + shell = os.environ['SHELL'] c = pexpect.spawn("{} -c '. {}; exec {} -i'".format(shell, activate_virtualenv(source=False), shell)) c.send(activate_virtualenv() + '\n') + + # Interact with the new shell. c.interact()