The title changes when the program ends
Before starting a terminal program, it has a title, for example, a@a:~
.
Then I want to bash a program that changes the title.
title.sh
echo $'\033]0;Title\a'
sleep 10
The 10 second wait is to appreciate that the title has been changed. But at the end of the program, the title returns to the original state.
I want there to be an option so that the title changed by the bash, remains at the end of the program.