I believe that in your case, the best solution would be to use triggers. You can find the documentation for Triggers here:
I hope that helps!
triggers may work in macOS using the iTerm plugin. On Windows, we currently don't have something like this. I will put this on my list. Maybe we can come up with something in the next major release.
i'd like to have a key sequence that loads a .bashrc from a central location
but i want it to wait until i've typed the password to ssh into then run
is there a wait for a key sequence to wait until i've typed the password in?