Show window dimensions in titlebar in iTerm2

itermterminal

In the default Terminal app the current width and height of the window are always displayed in the title bar, whereas in iTerm2 they're only displayed for a few moments when resizing.

How can I change it so that they're always visible in iTerm2 too?

Best Answer

Can't find the correct variable for the title. But if you go to iTerm2-> Preferences -> Profiles -> Session -> Configure Session, you can create a custom menu component with title as \(rows) x \(columns) and it will show the width. I know it's not the perfect solution but will do your job.

enter image description here

Make sure your status bar enabled is checked.