Lets say, the prompt is as below
run_scripts >
How to set that terminal tab title same as prompt
i.e Terminal tab tile also should be
Many terminals emulators are able to understand the special escaping : "\033]0;foo\007"
.
I know its a old post but i saw it today : Here is the answer:
title `pwd`
if title command does not works in your shell then:
#!/usr/bin/tcsh -f
echo "^[]2;$1^G^[]1;$1^G"
chmod +x title (give this script executable permission)
title `pwd` <enter>