withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.05k stars 63 forks source link

Tab title changed to name of shell #1410

Open clo4 opened 2 years ago

clo4 commented 2 years ago

My tabs in kitty now all show 'zsh' instead of something useful.

If you're running into this issue, could you let us know:

  1. Your terminal and shell
  2. Any shell plugins or frameworks you're using (eg. oh my zsh)
dechimp commented 2 years ago
  1. Kitty (Mac) and zsh
  2. prezto

I tried uncommenting the top/bottom fig init lines in my .zshrc, .bashrc and .profile and rebooting my terminal, but I still had the same behavior. Once I uninstalled Fig, the problem disappeared.

mschrage commented 2 years ago

This is actually not an issue with Fig. Instead it is a conflict between how Kitty determines the current process and Fig's shell integrations.

The workaround is to define the title format you want in Fig. eg. {cwd} | {process} | {pid} or something like this.

dechimp commented 2 years ago

Fig has window title formatting? :man_shrugging:

mrienstra commented 2 years ago
  1. Your terminal and shell: MacOS v.12.3 Terminal.app (default)
  2. Any shell plugins or frameworks you're using (eg. oh my zsh): No frameworks, the only plugin I have installed in Fig is alias-tips_djui.

Title shown in the top of the window (not within each tab)

Titles currently look like (while in a directory named folder): folder — zsh — zsh (figterm) ▸ zsh

If there is an active process -- in this case, more: folder — zsh — zsh (figterm) ▸ more

Right now, my titles are being controlled by Terminal.app preferences (Profiles --> Window, see this article for screenshots). If I uncheck "Active process name", the title become simply: folder — zsh

Title shown within each tab (just below the topmost title)

Titles currently look like (while in a directory named folder): folder — zsh — zsh (figterm) ▸ zsh

If there is an active process -- in this case, more: folder — zsh — zsh (figterm) ▸ more

... Didn't get as far as messing with this title, but presumably I could also at least make it stop showing the active process.