You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed my aliases and sourced scripts didn't work as expected (most notably nvm). I believe this is because commands is not executed in a login shell, so the .bashrc / .profile etc. is not applied.
I came up with a workaround though, executing with .sudo() and a user works, but then I cant use .with(), because when sudoing I'm ending up at the users home directory.
so then I needed to cd to the correct path before executing anything again, but now we've ended up with
also, i don't really know how you do .with() since we seem to use the same transport, does it get set through the rest of the flight? why not pass a new modified transport in as argument to the function (I might have missed something here).
I noticed my aliases and sourced scripts didn't work as expected (most notably nvm). I believe this is because commands is not executed in a login shell, so the .bashrc / .profile etc. is not applied.
I came up with a workaround though, executing with .sudo() and a user works, but then I cant use .with(), because when sudoing I'm ending up at the users home directory.
so then I needed to cd to the correct path before executing anything again, but now we've ended up with
for every command that I need to be executed with a login shell.
could this be done in the same manner as .with() ?
i.e.:
also, i don't really know how you do .with() since we seem to use the same transport, does it get set through the rest of the flight? why not pass a new modified transport in as argument to the function (I might have missed something here).
like so:
otherwise, why the need to pass a function?
The text was updated successfully, but these errors were encountered: