A plugin for profile.d that integrates pyenv - a simple Python version management tool.
- Automatically installs and configures pyenv
- Manages multiple Python versions
- Integrates with your shell to provide the
pyenvcommand - Automatically adds pyenv to your PATH
- Initializes pyenv shell integration on startup
- Add the following line to your
~/.profiledrc:
PLUGINS=(
# ... your other plugins ...
https://github.com/jakubro/profile.d-pyenv
)- Run the installation commands:
profile.d-install
. ~/.bashrcOnce installed, you can use pyenv to:
- List available Python versions:
pyenv install --list- Install a specific Python version:
pyenv install 3.11.5- Set global Python version:
pyenv global 3.11.5- Set local Python version for a project:
cd your-project
pyenv local 3.11.5- View currently active Python version:
pyenv versionThe plugin:
- Installs pyenv in
~/.pyenvduring the installation phase - Sets up necessary environment variables (
PYENV_ROOTandPATH) - Initializes pyenv shell integration on shell startup
- Provides seamless integration with Python version management
If you would like to contribute to this project, please feel free to submit a pull request or open an issue for discussion.
MIT License - see the LICENSE file for details.