【发布时间】:2023-03-25 11:27:02
【问题描述】:
我在 Fedora 中通过 GNOME 终端使用 Fish 和 byobu。我没有要求 Fish 更改终端标题。
猫 ~/.config/byobu/profile.tmux 来源 $BYOBU_PREFIX/share/byobu/profiles/tmux set -g status-right '#(gitmux -cfg ~/.config/byobu/gitmux.conf) #{pane_current_path}' 设置选项 -g 状态间隔 1 设置选项 -g 设置标题 set-option -g set-titles-string '#{?#{==:#{host},localhost},#{host_short} -:,}#{pane_current_path}#{pane_current_path}' 设置允许重命名关闭 设置选项 -g 允许重命名关闭
当我cd某个目录时,它会按预期短暂更改终端标题,然后将其更改为/home/psychoslave,无论实际路径是什么。但是,只要我运行一个程序,比如yes,标题就会回到正确的当前路径。
我可以调整什么以始终在终端标题中显示当前 Tmux 窗格的目录?
【问题讨论】:
标签: tmux gnome-terminal byobu