Skip to content

A plugin for profile.d that integrates pyenv - a simple Python version management tool.

License

Notifications You must be signed in to change notification settings

jakubro/profile.d-pyenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

profile.d-pyenv

A plugin for profile.d that integrates pyenv - a simple Python version management tool.

Features

  • 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

Installation

  1. Add the following line to your ~/.profiledrc:
PLUGINS=(
  # ... your other plugins ...
  https://github.com/jakubro/profile.d-pyenv
)
  1. Run the installation commands:
profile.d-install
. ~/.bashrc

Usage

Once installed, you can use pyenv to:

  1. List available Python versions:
pyenv install --list
  1. Install a specific Python version:
pyenv install 3.11.5
  1. Set global Python version:
pyenv global 3.11.5
  1. Set local Python version for a project:
cd your-project
pyenv local 3.11.5
  1. View currently active Python version:
pyenv version

How It Works

The plugin:

  1. Installs pyenv in ~/.pyenv during the installation phase
  2. Sets up necessary environment variables (PYENV_ROOT and PATH)
  3. Initializes pyenv shell integration on shell startup
  4. Provides seamless integration with Python version management

Contributing

If you would like to contribute to this project, please feel free to submit a pull request or open an issue for discussion.

License

MIT License - see the LICENSE file for details.

About

A plugin for profile.d that integrates pyenv - a simple Python version management tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages