Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable virtualenv bash in VTE? #2210

Open
fightthepower opened this issue Jul 7, 2019 · 4 comments
Open

How to enable virtualenv bash in VTE? #2210

fightthepower opened this issue Jul 7, 2019 · 4 comments

Comments

@fightthepower
Copy link

fightthepower commented Jul 7, 2019

I do coding in virtualenv and at present I access my virtualenv in VTE using virutalenvwrapper with the command workon ENV. Instead of this I want to directly load the virtualenv bash in VTE everytime I open geany. I know how to get the virtualenv's python but its the bash I am after.

I tried changing Edit > Preference > Terminal > Shell to workon ENV from /bin/bash which doesn't work. I also tried to source directly source ENV/bin/activate which also doesn't work. How do we enablel virtualenv bash in VTE?

@elextr
Copy link
Member

elextr commented Jul 7, 2019

The setting you used is correct, but its a path to an executable, not a command. So you need to set it to the correct path.

@elextr
Copy link
Member

elextr commented Jul 7, 2019

Actually it will accept arguments separated by spaces I think, but its still spawned directly, not run by a shell, since its being used as a shell.

@fightthepower
Copy link
Author

I didnt get this

Actually it will accept arguments separated by spaces I think, but its still spawned directly, not run by a shell, since its being used as a shell.

I tried with spaces as well /bin/bash workon venv but didn't work

@elextr
Copy link
Member

elextr commented Jul 8, 2019

I tried with spaces as well /bin/bash workon venv but didn't work

well that makes bash run the script called workon with one argument venv then exit, it doesn't run as an interactive shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants