/title-tab

Customize the Title for tabs on iTerm2 when using zsh

Primary LanguageShell

title-tab zsh (ubuntu)

This plugin sets the tab title to current folder (git-branch) if you're on a git repository or current folder if you're not.

title tab working

Installing

Zplugin

zplugin light cristovao-trevisan/title-tab

Oh-my-zsh

  1. Clone this repository to /path/to/.oh-my-zsh/custom/plugins (usually it is on ~/.oh-my-zsh)
$ git clone git@github.com:romulomachado/title-tab.git ~/.oh-my-zsh/custom/plugins
  1. Find where your zsh plugins are on the .zshrc file and add title-tab to the list.
plugins=(... title-tab)
  1. Run source .zshrc.
$ source ~/.zshrc

Or if you use zsh_reload:

$ src