0

Login to remote server with ssh in Emacs, general commands run well. Such as ls, docker ls, etc.

C-x C-f /ssh:...

But when I tried to run a command which alias to another which set in the .bashrc file. It doesn't work.

When I check cat ~/.bashrc, it returned the content of local .bashrc. Why?

0

Tramp, the package handling remote files, does not load .profile or .bashrc or alike.

  • Thank you very much for the very right answer. – 02040402 Jun 19 at 1:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.