mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
20 lines
440 B
Bash
Executable File
20 lines
440 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Summary: Deactivate virtual environment
|
|
#
|
|
# Usage: pyenv deactivate
|
|
#
|
|
# Deactivate a Python virtual environment.
|
|
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
{ printf "\x1B[31;1m"
|
|
echo
|
|
echo "\`pyenv deactivate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell."
|
|
echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions."
|
|
echo
|
|
printf "\x1B[0m"
|
|
} 1>&2
|
|
exit 1
|