【问题标题】:Current folder on remote folder in Emacs shell is gibberishEmacs shell 中远程文件夹上的当前文件夹是乱码
【发布时间】:2012-02-02 09:44:45
【问题描述】:

当我使用 Emacs 连接到远程机器(使用 tramp)然后打开 shell 时,Emacs 在远程机器上打开 shell,我而不是 pwd 得到一堆数字和字符串。

我该如何解决这个问题?

我在 Fedora 16 上使用 Emacs 23.3.1

这是我得到的:

///daae5ccda2e0917c98e90cda7ff909aa#$

当我在一个名为

的文件夹中时
code/mem/MC/src/

在远程机器上。

【问题讨论】:

  • 你在远程机器上运行哪个shell?你的 shell 启动脚本中可能有一些 Emacs 不喜欢的东西。
  • sh。当我从拱门尝试这个时,它工作正常。

标签: shell emacs tramp


【解决方案1】:

Tramp Remote shell Setup

交互式 shell 提示符

TRAMP 重新定义了 shell 提示符,以便可靠地解析 shell 的输出。当通过 M-x shell 调用交互式 shell 时,这看起来不太好。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-22
    • 2015-06-06
    • 2023-03-25
    • 1970-01-01
    • 2019-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多