Last Updated: February 25, 2016
·
981
· markus-perl

Linux, Mac - change the terminal title with a script

Save the following lines in a file called title.sh:

echo -ne "\033]0;$@\007" 

and make it executable:

chmod +x title.sh

To change the title simply call

$ ./title.sh “New Title”