ssh through emacs shell?

前端 未结 6 1631
闹比i
闹比i 2021-01-30 10:32

I wonder if anyone out there uses ssh through the emacs shell. I am able to connect with the remote machine but I cannot open files to view/edit with emacs using \'emacs filenam

6条回答
  •  执笔经年
    2021-01-30 11:11

    A couple of ideas

    • Source the .bashrc explicitly via . ~/.bashrc and/or rearrange your bash init files and ~/.profile so that this gets loaded inside the emacs shell; then running ssh inside the Emacs shell works just fine
    • Use the emacs-specific Tramp mode to access remote files via ssh inside your local Emacs -- this is useful if you just need to update/touch/edit a remote file so you would not need to open a remote emacs inside the ssh session started from inside your local emacs.

提交回复
热议问题