bullet-train.zsh icon indicating copy to clipboard operation
bullet-train.zsh copied to clipboard

Added python version in prompt for current active virtualenv

Open DhiaTN opened this issue 7 years ago • 2 comments

Now if you set the flag BULLETTRAIN_VIRTUALENV_PYTHON_VERSION=true, current python version will be displayed in prompt segment. Colors and prefix can also be customized. 🐍

screenshot from 2017-06-26 12-14-00

DhiaTN avatar Jun 27 '17 19:06 DhiaTN

Awesome! Well Done :+1:

ghost avatar Jul 17 '17 08:07 ghost

@DhiaTN Why do you duplicate an already existing feature? Virtualenv is doing just this.

Edit: I think I got what you want to achieve here. You can name the virtualenvs so they won't give you away with the version of the Python they use. Sorry, I always name them having the hint of the Python version in them.

Suggestion: since Python and virtualenv are very much related and we don't separate Ruby from it's gemsets, not Nodejs from it's NVM part, please find a way to merge it with the currently available virtualenv segment. Better, if you merge the virtualenv into the Python segment and make it optional to display the Python version in it. Now that would be awesome and clean.

vadviktor avatar Jul 28 '17 07:07 vadviktor