Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.42k stars 3.4k forks source link

the sftp of tabby don't support tmux #5255

Open 1JunGu opened 2 years ago

1JunGu commented 2 years ago

Describe the problem: [A clear and concise description of what the bug is.]

To Reproduce: [Steps to reproduce the behavior]

  1. I have add the export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]' in my ~/.bash_profile. It perfectly detected the working directory but not available while using tmux to create new pane or window even though source bashrc or bash_profile.

could you please fix this problem or did anyone encountered this similar problem?

HelloRicky123 commented 2 years ago

Describe the problem: [A clear and concise description of what the bug is.]

To Reproduce: [Steps to reproduce the behavior]

  1. I have add the export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]' in my ~/.bash_profile. It perfectly detected the working directory but not available while using tmux to create new pane or window even though source bashrc or bash_profile.

could you please fix this problem or did anyone encountered this similar problem?

Same problem

mmdoogie commented 1 year ago

You have to use the passthrough escape sequence with tmux for it to reach the shell that Tabby is actually interacting with

See https://github.com/tmux/tmux/wiki/FAQ#what-is-the-passthrough-escape-sequence-and-how-do-i-use-it

Which means you'd need to use \ePtmux;\e\e]1337;CurrentDir=$(pwd)\a\e\\ in your PS1 or PROMPT_COMMAND

GitHub
FAQ
tmux source code. Contribute to tmux/tmux development by creating an account on GitHub.