pipenv shell
not activating env on PowerShell for mac (possibly *nix)
#6107
Labels
PR: awaiting-merge
The PR related to this issue has been reviewed and is awaiting merge.
Issue description
Using
pipenv shell
on Powershell for mac does not activate the environment. Instead it displays the source command for bash and does not attempt to execute it. I can add.ps1
and hit enter to activate the environment correctly.Expected result
pipenv shell
to automatically activate the environment, like it does with fish or bash.Actual result
The shell is left here, with the bash source command not executed.
Steps to replicate
Displayed above in actual result
$ pipenv --support
Pipenv version:
'2023.12.1'
Pipenv location:
'/Users/scar/.local/lib/python3.11/site-packages/pipenv'
Python location:
'/Users/scar/.pyenv/versions/3.11.8/bin/python3.11'
OS Name:
'posix'
User pip version:
'23.3.2'
user Python installations found:
PEP 508 Information:
System environment variables:
POWERSHELL_TELEMETRY_OPTOUT
PSModulePath
PIP_DISABLE_PIP_VERSION_CHECK
TERM_PROGRAM_VERSION
STARSHIP_SESSION_KEY
LANG
DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER
SHELL
LaunchInstanceID
XPC_FLAGS
__CFBundleIdentifier
STARSHIP_SHELL
PYENV_SHELL
ITERM_PROFILE
HOMEBREW_NO_ANALYTICS
PIPENV_SHELL
TMPDIR
DOTNET_CLI_TELEMETRY_OPTOUT
SECURITYSESSIONID
COLORFGBG
HOME
XPC_SERVICE_NAME
TERM
PATH
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
PIP_PYTHON_PATH
TERM_PROGRAM
COMMAND_MODE
LC_TERMINAL
nvm_current_version
PYTHONFINDER_IGNORE_UNSUPPORTED
USER
TERM_SESSION_ID
COLORTERM
LC_TERMINAL_VERSION
PWD
PIPENV_ACTIVE
ITERM_SESSION_ID
LOGNAME
VIRTUAL_ENV_DISABLE_PROMPT
PYTHONDONTWRITEBYTECODE
SHLVL
Pipenv–specific environment variables:
PIPENV_SHELL
:/usr/local/bin/pwsh
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/Users/scar/.pyenv/versions/3.11.8/bin:/Users/scar/.pyenv/versions/3.9.18/bin:/usr/local/microsoft/powershell/7:/Users/scar/.pyenv/versions/3.11.8/bin:/Users/scar/.pyenv/versions/3.9.18/bin:/Users/scar/.pyenv/versions/3.11.8/bin:/Users/scar/.pyenv/versions/3.9.18/bin:/Users/scar/.pyenv/versions/3.11.8/bin:/Users/scar/.pyenv/versions/3.9.18/bin:/usr/local/microsoft/powershell/7:/Users/scar/.pyenv/shims:/Users/scar/.local/share/nvm/v17.9.1/bin:/Users/scar/.local/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/share/dotnet:~/.dotnet/tools
SHELL
:/opt/homebrew/bin/fish
LANG
:en_AU.UTF-8
PWD
:/Users/scar/tmp/test-pipenv
Contents of
Pipfile
('/Users/scar/tmp/test-pipenv/Pipfile'):The text was updated successfully, but these errors were encountered: