Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add activate/deactivate hooks #452

Merged
merged 5 commits into from
Mar 22, 2023
Merged

Conversation

joshfrench
Copy link
Contributor

@joshfrench joshfrench commented Mar 19, 2023

activate/deactivate hooks have been discussed several times but I haven't seen a PR, so... here's one :)

There are two test failures in test/activate and test/deactivate that I think are just me not fully understanding the stub system, do you mind taking a look and pointing me in the right direction? Thanks so much!


Past discussions:

  1. Closes Hook for pyenv activate  #428
  2. activate/deactivate script hooks? #55
  3. Plugin hooks not working pyenv#2337

bin/pyenv-sh-activate Outdated Show resolved Hide resolved
test/activate.bats Outdated Show resolved Hide resolved
test/activate.bats Outdated Show resolved Hide resolved
@native-api
Copy link
Member

@pyenv/pyenv-core-maintainers and especially @yyuu : any second opinions on the hook invocation placement?

Copy link
Collaborator

@yyuu yyuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

personally i might not apply very much of customization on activate/deactivate to keep shell setup cleaner/simpler, however, i can understand that there are some demands to customize the behavior around them. i’m open to adopt this definitely (esp. with working patch 😉 )

@native-api native-api merged commit fca1241 into pyenv:master Mar 22, 2023
@native-api
Copy link
Member

@joshfrench Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hook for pyenv activate
3 participants