iterm2-tab-set
iterm2-tab-set copied to clipboard
unable to set tab title when under zsh
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.
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 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.
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 that worked for me.
Now using this in my ~/.zshrc
alias tabs="DISABLE_AUTO_TITLE='true' && tabset --color 8000ff --mode 0 --title"
Tried this and it works for a fraction of a second and then the title goes back to what it was set to originally.