bash-it icon indicating copy to clipboard operation
bash-it copied to clipboard

[Question] How to show python virtual environment in command prompt after activating?

Open sulhome opened this issue 8 years ago • 4 comments

When activating a python virtual environment (source <env folder>/bin/activate), the command prompt doesn't show the virtual environment name. I have enabled the python plugin but that didn't make any difference.

Is this supported in bash it or I need to create some custom scripts to enable it.

I am running on ubuntu 16.04

sulhome avatar Sep 23 '18 23:09 sulhome

Which theme are you using? From what I remember, not all themes include the virtualenv prompt.

FWIW, I use the "powerline-multiline" theme, and it includes the virtualenv environment in the prompt.

nwinkler avatar Sep 24 '18 06:09 nwinkler

I am using the minimal theme

sulhome avatar Sep 24 '18 17:09 sulhome

Well, as the name indicates, the "minimal" team is fairly minimal. It does not include a lot of information:

https://github.com/Bash-it/bash-it/blob/ceee5cb2c165eba2f1c72f1c15039561e616fbb7/themes/minimal/minimal.theme.bash#L9

You might want to try using another theme that includes more information.

nwinkler avatar Sep 27 '18 10:09 nwinkler

This issue is very stale, so I close it. Thanks for contributing and posting!

NoahGorny avatar Dec 06 '20 22:12 NoahGorny