Skip to content

Commit 1b4af83

Browse files
committed
Merge pull request #16 from cpaulik/include-anaconda-virtualenvs
Include Virtualenvs in pyenv list of versions
2 parents b96c15f + b4fba60 commit 1b4af83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyenv-mode.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454

5555
(defun pyenv-mode-versions ()
5656
"List installed python versions."
57-
(let ((versions (shell-command-to-string "pyenv versions --bare")))
58-
(cons "system" (split-string versions))))
57+
(let ((versions (concat (shell-command-to-string "pyenv versions --bare")
58+
(shell-command-to-string "pyenv virtualenvs --bare"))))
59+
(delete-dups (cons "system" (split-string versions)))))
5960

6061
(defun pyenv-mode-read-version ()
6162
"Read virtual environment from user input."

0 commit comments

Comments
 (0)