Skip to content

Commit

Permalink
Add example to README
Browse files Browse the repository at this point in the history
Explain how the plugin can be used to find unused installations.
  • Loading branch information
pfheatwole authored Jan 30, 2021
1 parent c005853 commit 3362a98
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ For example, to get a list of all versions linked to a virtual environment:
3.8.6
pypy3.6-7.3.1
The list of linked versions can be combined with the list of all installed
versions to show which installations are not linked to any environment in the
specified directory:

.. code-block:: bash
$ pyenv versions
* system (set by /home/peter/.local/pyenv/version)
3.6.10
3.7.5
3.7.9
3.8.6
3.9.1
pypy3.6-7.3.0
pypy3.6-7.3.1
$ comm -3 <(pyenv users --raw ~ | cut -d: -f1 | uniq) <(pyenv versions | tail -n+2 | tr -d "[:blank:]") | tr -d "[:blank:]"
3.6.10
3.7.5
3.9.1
pypy3.6-7.3.0
Disclaimer
----------
Expand Down

0 comments on commit 3362a98

Please # to comment.