From a775a85f8cfb7e6187198355052ce48fd9224e39 Mon Sep 17 00:00:00 2001 From: Rob McBroom Date: Fri, 1 Jun 2018 09:06:04 -0400 Subject: [PATCH] prefix activation command with a space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For ZSH users with HIST_IGNORE_SPACE, this will keep activation noise out of the shell’s history. --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 504ce47e0d..3dac646bdf 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1181,7 +1181,7 @@ def activate_virtualenv(source=True): """Returns the string to activate a virtualenv.""" # Suffix and source command for other shells. suffix = '' - command = '.' if source else '' + command = ' .' if source else '' # Support for fish shell. if PIPENV_SHELL and 'fish' in PIPENV_SHELL: suffix = '.fish'