From d428be59ec28352544348b99ef85b81b3f61c3d2 Mon Sep 17 00:00:00 2001 From: real-yfprojects Date: Tue, 6 Jun 2023 16:39:52 +0200 Subject: [PATCH] Write README. * README.md --- README.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 882dbf34..67fa6379 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,62 @@ # pyenv-link -A pyenv plugin for linking python versions and virtual envs into your pyenv root. +A [pyenv](https://github.com/pyenv/pyenv) plugin for linking python versions and virtual envs into your pyenv root. + +This plugin recommends the [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv/) plugin. + +## Installation + +This will install the latest development version of *pyenv-link* into +the `$(pyenv root)/plugins/pyenv-link` directory. + +**Important note:** If you installed pyenv into a non-standard directory, make +sure that you clone this repo into the 'plugins' directory of wherever you +installed into. + +From inside that directory you can: + - Check out a specific release tag. + - Get the latest development release by running `git pull` to download the + latest changes. + + +```bash +git clone https://github.com/real-yfprojects/pyenv-link.git $(pyenv root)/plugins/pyenv-link +``` + +For the Fish shell: + +```fish +git clone https://github.com/real-yfprojects/pyenv-link.git (pyenv root)/plugins/pyenv-link +``` + +## Usage + +Make an arbitrary virtualenv available through pyenv. This automatically guesses a fitting name from the prompt, the directory name or the location of the venv. + +```console +$ pyenv link version .venv +Linked new version named myproject-py3.10 +``` + +You can also specify a name to use for the venv. + +```console +$ pyenv link version .venv myname +Linked new version named myname +``` + +Now you can make pyenv activate/use the venv automatically: + +```console +$ pyenv local myproject-py3.10 +``` + +## Contributing +This project is developed in an open-source, community-driven way, as a voluntary effort in the authors’ free time. + +All kinds of contributions are greatly appreciated. This not only includes implementing new features but also refactoring work or improvements to the documentation. +Bug reports, feature requests and other suggestions are welcome too. + +### TODO + +- [ ] Tests +- [ ] CI \ No newline at end of file