I'd like to have my current
$PS1 prompt (
\u@\h:\w$(__git_ps1 "(%s)")\$ plus some coloring) to be also used as
screen's window title (in the hardline) and as the xterm window title. How can this be achieved?
An incomplete solution would be to modify your
Add the following prior to the catch all (ie
This will modify your hardstatus:
This will modify your window title:
The hardstatus will not show up unless you have configured it to do so. For example, you could add the following to your
This will set the hardstatus line to the stored hardstatus between two brackets on the left side of the screen and the CPU utilization to the right along with the date and time.
with bash, to change screen title dynamically to $YourVariable
( screenrc caption variable %t)
Possibility is to use also hardstatus ( screenrc caption variable %h)
if not inside "screen", will change window (terminal emulator) title