New to bash scripting and looking to tidy my screen. I have a number of terminal windows running separate process but all with the same window title. Using the following i can change the title.. all well and good:
PS1='\[\e]0;TEST TITLE HERE: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$'
If i place this inside a script, it has no effect:
#! /bin/bash
PS1='\[\e]0;TEST TITLE HERE: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$'
What element of scripting have i failed to appreciate that prevents me from doing what I'm trying to do?
many thanks