mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings
285 stars 15 forks source link

Re-apply tab title when shell is re-executed #44

Open barankyle opened 2 years ago

barankyle commented 2 years ago

This is admittedly a minor cosmetic issue, but hopefully it's a simple change.

When gnome-terminal is in use, and the change that was added last week to re-execute $SHELL when the running process closes is triggered, the new shell doesn't have the title that was applied to the original tab. It would be nice if the title could be re-applied.

mklement0 commented 2 years ago

I'll look into it. It would have to be done via ANSI escape sequences.

xithalius commented 1 year ago

Would be really nice to have this one implemented. Are you open to approving PR's if I were to look into this @mklement0? This issue is also applicable to the default Terminal as well as iTerm2.

mklement0 commented 1 year ago

Sounds great, @xithalius - feel free to submit a PR.