Skip to content

[polish]improve sftpPathFollowSsh feature #3973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2025
Merged

Conversation

asmpg
Copy link
Contributor

@asmpg asmpg commented Jun 22, 2025

Previously, the PS1 setup command for sftpPathFollowSsh executed after your first command, which was problematic when the first command was vi or vim.
Now, the PS1 setup command executes immediately after a remote terminal connection is established.
The improvment has beed tested on Windows 11 and macOS 15.

asmpg added 2 commits June 20, 2025 18:21
- 将 PS1 设置和恢复命令提取为常量,减少代码重复
- 优化 SFTP 路径跟随 SSH 功能的逻辑,增加错误处理
- 改进 getCwd 和 runInitScript 方法,确保在适当的时候发送命令
- 添加日志警告,提高错误调试的可读性
@zxdong262 zxdong262 merged commit f71c13f into electerm:master Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants