Allow pyenv to select the python version from the program name.
Installing pyenv-chooser as a pyenv plugin will give you access to the provided behavior.
$ git clone git://github.com/oscarmcm/pyenv-chooser.git ~/.pyenv/plugins/pyenv-chooser
$ pyenv install 2.7.5
$ pyenv install 3.6.1
$ pyenv install 3.6.2
$ pyenv version
system (set by ...)
$ python3.6
pyenv-chooser: Found multiple Python python3.6 in pyenv, choose a version.
1) 3.6.1
2) 3.6.2
3) cancel
#? <option>
Selected Python <option> version
Unless otherwise noted, all files contained within this project are liensed under the MIT opensource license. See the included file LICENSE or visit opensource.org for more information.