How to preserve previous session after running `exec`
Glyphack opened this issue · comments
- I am using the latest release of AWS Vault
- I have provided my
.aws/config
(redacted if necessary) - I have provided the debug output using
aws-vault --debug
(redacted if necessary)
I have a question about how do you preserve the previous shell after running exec
command. I understand that exec
creates a subshell, and if I have a python virtual env activated it will be deactivated in the subshell.
Here's an example:
❯ which python
/Users/glyphack/.virtualenvs/data-products-infra/bin/python
❯ aws-vault exec bren-sa-na-prod
Starting subshell /usr/local/bin/fish, use `exit` to exit the subshell
❯ which python
/Users/glyphack/.pyenv/shims/python
Could you provide some resources on how can I change my config so that the virtual env is kept activated?