This plugin sets the tab title to
username@hostname: full-path (git-branch)
if you're on a git repository orusername@hostname: full-path
if you're not.
- Clone this repository to
/path/to/.oh-my-zsh/custom/plugins
(usually it is on~/.oh-my-zsh
)
$ git clone https://github.com/yew/title-tab.git ~/.oh-my-zsh/custom/plugins/title-tab
- Edit
.zshrc
file.
- Find where your zsh plugins are on the
.zshrc
file and addtitle-tab
to the list.
plugins=(... title-tab)
- Uncomment the following line to disable auto-setting terminal title.
DISABLE_AUTO_TITLE="true"
- Run
source .zshrc
.
$ source ~/.zshrc
And that's it. :)