fig icon indicating copy to clipboard operation
fig copied to clipboard

Tab title changed to name of shell

Open clo4 opened this issue 3 years ago • 4 comments

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)

clo4 avatar May 04 '22 05:05 clo4

  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.

dechimp avatar May 04 '22 13:05 dechimp

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.

mschrage avatar May 06 '22 17:05 mschrage

Fig has window title formatting? :man_shrugging:

dechimp avatar May 06 '22 18:05 dechimp

  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.

mrienstra avatar Oct 09 '22 07:10 mrienstra