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?

1 Answer 1

0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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