With Terminator, a user can define layouts within the configuration file. With these layouts, the user can set a command to be executed at start-up. So, for example, one could create a layout in which a terminal automatically executed ls
like this (note the bash
command to avoid the terminal closing):
command = "ls; bash"
Now, how can I make Terminator load a Python Virtual Environment instead? Keeping, of course, the bash console active with the environment loaded.
Note
The trivial way:
command = "workon my_env; bash"
or its source my_env/bin/activate
equivalent (without using virtualenvwrapper
), wont work.
/bin/bash: =: command not found /bin/bash: line 0: unset: ´PROMPT_COMMAND') -i': not a valid identifier
– Aho