xtitle

Set window title and icon name for X terminal windows

brewmacoslinux
Try with needOr install directly
Source

About

Set window title and icon for your X terminal

Commands

xtitle

Examples

change terminal window title to custom text$ xtitle 'My Project Workspace'
set both window title and icon name at once$ xtitle -t 'Editor' -i 'vim'
display the current window title$ xtitle
change title to show current directory in terminal$ xtitle "$(pwd)"
set window title from shell command output$ xtitle "Build: $(date +%H:%M:%S)"