8000 Set Window title and Tab title separately · Issue #2692 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Set Window title and Tab title separately #2692

@eugenesvk

Description

@eugenesvk

In zsh I am able to set tab and window titles separately in iTerm2, e.g. I have

  1. Tab title: current folder only to easily differentiate tabs by which folder they're open at. In path ~ replaces username (echo -ne "\033]1;{$PWD1/#username/~}\007", where PWD1={$PWD##*/}
  2. Win title: full path with ~ instead of /users/username (echo -ne "\033]2;{$PWD/#"$HOME"/~}\007")

As I understand from #47, fish just sets both windows and tab titles with the same fish_title function.
Is it possible to separate those two, maybe have a separate tab_title function or something so that users who are not using it continue to get both windows and tab title within the old function?
Also, in zsh I am able to add a bell char (\007) to the titles. How do I do that in fish?
Thanks!

P.S.
My system is OS X 10.11.2, iTerm2 2.9.20160113 and fish 2.2.0-542-g4b2495f

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0