precmd () { echo -n "\x1b]1337;CurrentDir=$(pwd)\x07" } ZSH: 编辑~/.config/fish/config.fish: function __tabby_working_directory_reporting --on-event fish_prompt echo -en "\e]1337;CurrentDir=$PWD\x7" end