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
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#bash
#terminal title
#linux terminal
#mac terminal
#script terminal title
#linux terminal title
#mac terminal title
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#