WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

2.6.0 Prerelease 4 compatibility with zsh

Open yangyeyu333 opened this issue 2 years ago • 5 comments

image

普通账号使用bash,root账号使用zsh的情况下,使用普通用户切换至root账户会有如图错误提示

When using bash for a regular account and zsh for a root account, switching to the root account using a regular user will result in an error message as shown in the figure

yangyeyu333 avatar Nov 20 '23 07:11 yangyeyu333

image

找到问题了,自动同步终端文件夹(F9)仅在使用root用户登录时候才能正常工作。

Found the problem, Automatically Sync Terminal Folder (F9) can only work properly when logged in as root.

yangyeyu333 avatar Nov 20 '23 08:11 yangyeyu333

我的是root用户也不行

ruizhang3 avatar Nov 25 '23 01:11 ruizhang3

I have also encountered this issue, but I am not yet clear on what has caused the problem to arise. I will continue to investigate and resolve it. Please stay tuned, thank you.

kingToolbox avatar Dec 02 '23 07:12 kingToolbox

I have also encountered this issue, but I am not yet clear on what has caused the problem to arise. I will continue to investigate and resolve it. Please stay tuned, thank you.

These two functions("Manually sync terminal folder" and "Automatically sync terminal folder") are ineffective and have been bothering me for a long time, i use it on win10. Very much looking forward to fix it

youwenbo avatar Dec 06 '23 09:12 youwenbo

Automatically Sync Terminal Folder (F9) can only work when use bash fish or zsh doesn't work

iknownoth1ng avatar Dec 14 '23 15:12 iknownoth1ng

Automatically Sync Terminal Folder (F9) can only work when use bash fish or zsh doesn't work

it worked when use fish

~/.config/fish/config.fish

function __tabby_working_directory_reporting --on-event fish_prompt
     echo -en "\e]1337;CurrentDir=$PWD\x7"
end

iknownoth1ng avatar Jan 10 '24 07:01 iknownoth1ng

zsh 可以在 .zshrc 末尾加上

precmd () { echo -n "\x1b]1337;CurrentDir=$(pwd)\x07" }

fevrax avatar Jan 13 '24 05:01 fevrax

@dalefengs 我配置了,但是无法正常工作,macos 14.2 我怀疑是file://协议的问题,如果windterm底层执行同样的cd命令,而不是使用file协议应该能解决

allinu avatar Feb 17 '24 03:02 allinu