以下字符串出现在终端中:
]133;C;]133;D;0]1337;RemoteHost=root@ubuntu.letbox.com]1337;CurrentDir=/root]133;Aroot@ubuntu:~#
]133;B
Run Code Online (Sandbox Code Playgroud)
它似乎告诉我当前目录以及像]1337 . 知道如何解决这个问题吗?谢谢。
小智 6
这是由某人根据http://www.iterm2.com/documentation-shell-integration.html设置 iTerm2 shell 集成引起的。
检查 .iterm2_shell_integration.bash 是否来自 .bash_profile。这只是在我登录 Ubuntu 服务器时发生的,我通过删除 ~/.iterm2_shell_integration.bash 修复了它。
此处还注明:https : //unix.stackexchange.com/questions/292042/how-to-fix-shell-prompt-ps1-after-remote-login
| 归档时间: |
|
| 查看次数: |
1863 次 |
| 最近记录: |