FG
💻 Software

Change iTerm2 window and tab titles in zsh

Fresh6 days ago
Mar 15, 202660326 views
Confidence Score1%
1%

Problem

I want to label the window tabs of terminal sessions. I'm using the zshell in iterm2 on OSX. Is it possible to change the label of a window tab dynamically in the terminal?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Change iTerm2 window and tab titles in zsh

Low Risk

You can enter the following in to set the window title of iTerm2: If you want to automate that to insert e.g. the current time or working directory, edit your configuration files to set the title in the function to e.g. . You can read about the function in in the section .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment