Skip to content

Commit f196141

Browse files
committed
venv: do not export PS1 in activate
PS1 is a global parameter. It does not need (and should not be) exported to the users environment.
1 parent ce558e6 commit f196141

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/venv/scripts/common/activate

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ deactivate () {
2323

2424
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
2525
PS1="${_OLD_VIRTUAL_PS1:-}"
26-
export PS1
2726
unset _OLD_VIRTUAL_PS1
2827
fi
2928

@@ -63,7 +62,6 @@ fi
6362
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
6463
_OLD_VIRTUAL_PS1="${PS1:-}"
6564
PS1="__VENV_PROMPT__${PS1:-}"
66-
export PS1
6765
VIRTUAL_ENV_PROMPT="__VENV_PROMPT__"
6866
export VIRTUAL_ENV_PROMPT
6967
fi

0 commit comments

Comments
 (0)