Skip to content

Commit

Permalink
feat: fix poetry shell with mise
Browse files Browse the repository at this point in the history
poetry shell will add the venv python to the path but it'll be behind mise python(s)
so we tell the subshell not to auto-activate mise

ref: python-poetry/poetry#9463
  • Loading branch information
phette23 committed Jun 2, 2024
1 parent fa661a3 commit c840aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/psh.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function psh -d "run pipenv/poetry shell (detects which one)"
if [ -f Pipfile ]
pipenv shell
else if [ -f pyproject.toml ]
poetry shell
MISE_FISH_AUTO_ACTIVATE=0 poetry shell
else
echo "No Pipfile or pyproject.toml found"
end
Expand Down

0 comments on commit c840aab

Please sign in to comment.