Last Updated: February 25, 2016
·
1K
· 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

Written by Markus Perl

Recommend
Say Thanks
Update Notifications Off
Respond