dailyhack icon indicating copy to clipboard operation
dailyhack copied to clipboard

A command to give your terminal windows a title

Open Booligoosh opened this issue 5 years ago • 3 comments

Put this in your bash profile:

function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }

Then just type title "myTitle" in the terminal.

Booligoosh avatar Apr 09 '19 07:04 Booligoosh

Cool Man. Is there any shortcut to change terminal bg color with a single command?

mddanishyusuf avatar Apr 09 '19 08:04 mddanishyusuf

Not that I know of!! And not according to this... https://superuser.com/questions/1188772/mac-command-to-change-the-background-color-in-a-terminal

Booligoosh avatar Apr 09 '19 08:04 Booligoosh

can also use "command + i", only for title change

gjain574 avatar Apr 09 '19 10:04 gjain574