tabby terminal sftp问题

实现点击sftp,目录跟随

bash

vim ~/.bash_profile

1
export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'

ZSH

vim ~/.zshrc

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