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
pyenv
command - 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
. ~/.bashrc
Once 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 version
The plugin:
- Installs pyenv in
~/.pyenv
during the installation phase - Sets up necessary environment variables (
PYENV_ROOT
andPATH
) - 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.