Open rsyring opened 1 year ago
I'm not really sure why this doesn't work since it sets the VIRTUAL_ENV
env var, I would think PS1 would be able to read it
the VIRTUAL_ENV var is set after .zshrc is initialized. using the python autoactivate virtual environment feature is currently not compatible with showing the virtual environment in the prompt in a straightforward way. e.g. the a vanilla ohmyzsh installation (with virtual environment information) will not work.
ah in that case it should be fixed by calling _mise_hook_cmd
or whatever that is before rendering PS1
I currently have the following set in
.bashrc
so that my prompt gets updated when I have a virtualenv activated:But when using rtx's virtualenv activation the prompt is not modified when virtualenvs are active. I'm assuming this is an order of operations issue? Is this something that can be fixed by rtx? If not, is there a better way to modify the prompt so that it works with the way RTX activates the virtualenv?