iterm2-tab-set icon indicating copy to clipboard operation
iterm2-tab-set copied to clipboard

unable to set tab title when under zsh

Open ssbarnea opened this issue 6 years ago • 5 comments

tabset clearly works for setting the badge but it doesn't for setting the title, at least not for zsh users.

I suspect it may be a problem specific to my local configuration but after spending a lot of time trying to find the source of the problem I decided to raise a bug. Hopefully we will find it and document the correct way to enable it.

PS. Nice work! It was a pleasure to discover the tool, I had something written in bash but not as polished as yours.

ssbarnea avatar Oct 09 '17 11:10 ssbarnea

In your ~/.zshrc, or on the CLI before you execute tabset, make sure DISABLE_AUTO_TITLE="true".

so:

DISABLE_AUTO_TITLE='true' tabset --title "Bob's Burgers"

or in ~/.zshrc

DISABLE_AUTO_TITLE="true"

jakeonrails avatar Nov 20 '17 19:11 jakeonrails

@jakeonrails I just checked your command and it didn't had any effect on my iTerm 3.1.5.beta.2, not sure what else to try. Yep, using zsh, and double checking that the variable was defined.

ssbarnea avatar Nov 20 '17 19:11 ssbarnea

you may also need to use a mode flag. I'm using something like this:

DISABLE_AUTO_TITLE='true' && tabset --color 8000ff --mode 0 --title 'GUARD'

jakeonrails avatar Nov 20 '17 19:11 jakeonrails

@jakeonrails that worked for me.

Now using this in my ~/.zshrc

alias tabs="DISABLE_AUTO_TITLE='true' && tabset --color 8000ff --mode 0 --title"

nitrocode avatar Oct 03 '18 15:10 nitrocode

Tried this and it works for a fraction of a second and then the title goes back to what it was set to originally.

hemna avatar Oct 18 '22 14:10 hemna