I have set up custom $PATH in my ~/.bash_profile on a remote machine (for programs installed user-locally by nix
and cabal
).
I use eshell and tramp to issue commands on the remote machine (cd /remotehost:somedir
; then commands). (I chose this method instead of the common SSH-sessions in a terminal primarily because I'm using a bad connection and SSH-sessions get interrupted very often, so I can't count on being able to login, cd, and issue a command before the connection is interrupted.)
Unfortunately, my custom PATH is not honored in this situation, and some of the programs are not found.
What would be the nicest way to solve this problem?